(name: str, args: list[nodes.Argument])
| 900 | |
| 901 | |
| 902 | def maybe_strip_cls(name: str, args: list[nodes.Argument]) -> list[nodes.Argument]: |
| 903 | if args and name in ("__init_subclass__", "__class_getitem__"): |
| 904 | # These are implicitly classmethods. If the stub chooses not to have @classmethod, we |
| 905 | # should remove the cls argument |
| 906 | if args[0].variable.name == "cls": |
| 907 | return args[1:] |
| 908 | return args |
| 909 | |
| 910 | |
| 911 | class Signature(Generic[T]): |
no outgoing calls
no test coverage detected
searching dependent graphs…