Skip to content

Commit b5666d4

Browse files
authored
Improve comments of builtins.function (#6818)
1 parent ff64deb commit b5666d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/builtins.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,10 +764,10 @@ class tuple(Sequence[_T_co], Generic[_T_co]):
764764
if sys.version_info >= (3, 9):
765765
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
766766

767-
# Make sure this class definition stays roughly in line with `types.FunctionType`
767+
# Doesn't exist at runtime, but deleting this breaks mypy. See #2999
768768
@final
769769
class function:
770-
# TODO not defined in builtins!
770+
# Make sure this class definition stays roughly in line with `types.FunctionType`
771771
__closure__: tuple[_Cell, ...] | None
772772
__code__: CodeType
773773
__defaults__: tuple[Any, ...] | None

0 commit comments

Comments
 (0)