@@ -431,7 +431,7 @@ class SummaryInputPosition:
431
431
offset : int
432
432
433
433
@classmethod
434
- def _from_metadata (cls , metadata : t . Any ) -> te .Self | None :
434
+ def _from_metadata (cls , metadata : object ) -> te .Self | None :
435
435
if not isinstance (metadata , dict ):
436
436
return None
437
437
line = metadata .get ("line" )
@@ -515,7 +515,7 @@ class SummaryNotification:
515
515
position : SummaryNotificationPosition | None = None
516
516
517
517
@classmethod
518
- def _from_metadata (cls , metadata : t . Any ) -> te .Self :
518
+ def _from_metadata (cls , metadata : object ) -> te .Self :
519
519
if not isinstance (metadata , dict ):
520
520
return cls ()
521
521
kwargs : _SummaryNotificationKwargs = {
@@ -631,7 +631,7 @@ def _no_data(cls) -> te.Self:
631
631
return obj
632
632
633
633
@classmethod
634
- def _from_status_metadata (cls , metadata : t . Any ) -> te .Self :
634
+ def _from_status_metadata (cls , metadata : object ) -> te .Self :
635
635
obj = cls ()
636
636
if isinstance (metadata , dict ):
637
637
obj ._status_metadata = metadata
@@ -640,7 +640,7 @@ def _from_status_metadata(cls, metadata: t.Any) -> te.Self:
640
640
return obj
641
641
642
642
@classmethod
643
- def _from_notification_metadata (cls , metadata : t . Any ) -> te .Self :
643
+ def _from_notification_metadata (cls , metadata : object ) -> te .Self :
644
644
obj = cls ()
645
645
if not isinstance (metadata , dict ):
646
646
metadata = {}
@@ -805,8 +805,6 @@ def position(self) -> SummaryInputPosition | None:
805
805
The position of the input that caused the status (if applicable).
806
806
807
807
This is vendor-specific information.
808
- If not provided, it defaults to :class:`SummaryInputPosition`'s
809
- default.
810
808
811
809
Only notifications (see :attr:`.is_notification`) have a meaningful
812
810
position.
0 commit comments