Mark pos-only __class_getitem__ args (#11970)

This commit is contained in:
Shantanu
2024-05-18 14:27:51 -07:00
committed by GitHub
parent 69dc8e291a
commit d9cf43c4c3
34 changed files with 45 additions and 45 deletions

View File

@@ -58,7 +58,7 @@ class ValueProxy(BaseProxy, Generic[_T]):
def set(self, value: _T) -> None: ...
value: _T
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class DictProxy(BaseProxy, MutableMapping[_KT, _VT]):
__builtins__: ClassVar[dict[str, Any]]

View File

@@ -21,7 +21,7 @@ class ApplyResult(Generic[_T]):
def ready(self) -> bool: ...
def successful(self) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
# alias created during issue #17805
AsyncResult = ApplyResult

View File

@@ -38,4 +38,4 @@ class SimpleQueue(Generic[_T]):
def get(self) -> _T: ...
def put(self, obj: _T) -> None: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...

View File

@@ -37,4 +37,4 @@ class ShareableList(Generic[_SLT]):
def count(self, value: _SLT) -> int: ...
def index(self, value: _SLT) -> int: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...