File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -858,7 +858,7 @@ def from_overloadedfuncdef(stub: nodes.OverloadedFuncDef) -> Signature[nodes.Arg
858
858
859
859
all_args : dict [str , list [tuple [nodes .Argument , int ]]] = {}
860
860
for func in map (_resolve_funcitem_from_decorator , stub .items ):
861
- assert func is not None
861
+ assert func is not None , "Failed to resolve decorated overload"
862
862
args = maybe_strip_cls (stub .name , func .arguments )
863
863
for index , arg in enumerate (args ):
864
864
# For positional-only args, we allow overloads to have different names for the same
@@ -1330,6 +1330,7 @@ def apply_decorator_to_funcitem(
1330
1330
if (
1331
1331
decorator .fullname in ("builtins.staticmethod" , "abc.abstractmethod" )
1332
1332
or decorator .fullname in mypy .types .OVERLOAD_NAMES
1333
+ or decorator .fullname in mypy .types .OVERRIDE_DECORATOR_NAMES
1333
1334
or decorator .fullname in mypy .types .FINAL_DECORATOR_NAMES
1334
1335
):
1335
1336
return func
You can’t perform that action at this time.
0 commit comments