File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -660,15 +660,16 @@ def _visit_overloaded_func_def(self, defn: OverloadedFuncDef) -> None:
660
660
if defn .impl :
661
661
defn .impl .accept (self )
662
662
if (
663
- isinstance (impl := defn .impl , Decorator )
664
- and isinstance (ct := impl .func .type , CallableType )
665
- and ((deprecated := ct .deprecated ) is not None )
663
+ isinstance (defn .impl , Decorator )
664
+ and isinstance (defn . impl .func .type , CallableType )
665
+ and ((deprecated := defn . impl . func . type .deprecated ) is not None )
666
666
):
667
- if isinstance (ct := defn .type , (CallableType , Overloaded )):
668
- ct .deprecated = deprecated
667
+ if isinstance (defn .type , (CallableType , Overloaded )):
668
+ defn . type .deprecated = deprecated
669
669
for subdef in defn .items :
670
- if isinstance (ct := get_proper_type (subdef .type ), (CallableType , Overloaded )):
671
- ct .deprecated = deprecated
670
+ type_ = get_proper_type (subdef .type )
671
+ if isinstance (type_ , (CallableType , Overloaded )):
672
+ type_ .deprecated = deprecated
672
673
if not defn .is_property :
673
674
self .check_overlapping_overloads (defn )
674
675
if defn .type is None :
You can’t perform that action at this time.
0 commit comments