mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
Improve comments of builtins.function (#6818)
This commit is contained in:
@@ -764,10 +764,10 @@ class tuple(Sequence[_T_co], Generic[_T_co]):
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
|
||||
|
||||
# Make sure this class definition stays roughly in line with `types.FunctionType`
|
||||
# Doesn't exist at runtime, but deleting this breaks mypy. See #2999
|
||||
@final
|
||||
class function:
|
||||
# TODO not defined in builtins!
|
||||
# Make sure this class definition stays roughly in line with `types.FunctionType`
|
||||
__closure__: tuple[_Cell, ...] | None
|
||||
__code__: CodeType
|
||||
__defaults__: tuple[Any, ...] | None
|
||||
|
||||
Reference in New Issue
Block a user