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 ff64deb commit b5666d4Copy full SHA for b5666d4
stdlib/builtins.pyi
@@ -764,10 +764,10 @@ class tuple(Sequence[_T_co], Generic[_T_co]):
764
if sys.version_info >= (3, 9):
765
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
766
767
-# Make sure this class definition stays roughly in line with `types.FunctionType`
+# Doesn't exist at runtime, but deleting this breaks mypy. See #2999
768
@final
769
class function:
770
- # TODO not defined in builtins!
+ # Make sure this class definition stays roughly in line with `types.FunctionType`
771
__closure__: tuple[_Cell, ...] | None
772
__code__: CodeType
773
__defaults__: tuple[Any, ...] | None
0 commit comments