We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7886503 commit cec31d6Copy full SHA for cec31d6
mypy/stubtest.py
@@ -668,7 +668,7 @@ def _verify_arg_default_value(
668
669
670
def maybe_strip_cls(name: str, args: list[nodes.Argument]) -> list[nodes.Argument]:
671
- if name in ("__init_subclass__", "__class_getitem__"):
+ if args and name in ("__init_subclass__", "__class_getitem__"):
672
# These are implicitly classmethods. If the stub chooses not to have @classmethod, we
673
# should remove the cls argument
674
if args[0].variable.name == "cls":
0 commit comments