Add missing descriptor methods in dataclasses and functools (#7203)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-02-15 06:45:49 -08:00
1 parent feb20fc20a
commit 96b06adf2c
5 files changed
+8 -8

No files matched your search

+2
View File
@@ -111,6 +111,8 @@ class Field(Generic[_T]):
compare: bool,
metadata: Mapping[Any, Any],
) -> None: ...
def __set_name__(self, owner: Type[Any], name: str) -> None: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...