mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Mark pos-only __class_getitem__ args (#11970)
This commit is contained in:
@@ -398,7 +398,7 @@ class SpooledTemporaryFile(IO[AnyStr], _SpooledTemporaryFileBase):
|
||||
def writable(self) -> bool: ...
|
||||
def __next__(self) -> AnyStr: ... # type: ignore[override]
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
class TemporaryDirectory(Generic[AnyStr]):
|
||||
name: AnyStr
|
||||
@@ -457,7 +457,7 @@ class TemporaryDirectory(Generic[AnyStr]):
|
||||
def __enter__(self) -> AnyStr: ...
|
||||
def __exit__(self, exc: type[BaseException] | None, value: BaseException | None, tb: TracebackType | None) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
# The overloads overlap, but they should still work fine.
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user