Skip to content

Commit 73e19e3

Browse files
committed
assert error
1 parent 9beaaf5 commit 73e19e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def from_overloadedfuncdef(stub: nodes.OverloadedFuncDef) -> Signature[nodes.Arg
858858

859859
all_args: dict[str, list[tuple[nodes.Argument, int]]] = {}
860860
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"
862862
args = maybe_strip_cls(stub.name, func.arguments)
863863
for index, arg in enumerate(args):
864864
# For positional-only args, we allow overloads to have different names for the same

0 commit comments

Comments
 (0)