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 971d2c3 commit 5278258Copy full SHA for 5278258
stdlib/types.pyi
@@ -39,6 +39,7 @@ class _Cell:
39
__hash__: None # type: ignore[assignment]
40
cell_contents: Any
41
42
+# Make sure this class definition stays roughly in line with `builtins.function`
43
@final
44
class FunctionType:
45
__closure__: tuple[_Cell, ...] | None
@@ -59,7 +60,7 @@ class FunctionType:
59
60
closure: tuple[_Cell, ...] | None = ...,
61
) -> None: ...
62
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
- def __get__(self, obj: object | None, type: type | None) -> MethodType: ...
63
+ def __get__(self, obj: object | None, type: type | None = ...) -> MethodType: ...
64
65
LambdaType = FunctionType
66
0 commit comments