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:
@@ -111,7 +111,7 @@ class DictReader(Iterator[dict[_T | Any, str | Any]], Generic[_T]):
|
||||
def __iter__(self) -> Self: ...
|
||||
def __next__(self) -> dict[_T | Any, str | Any]: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
class DictWriter(Generic[_T]):
|
||||
fieldnames: Collection[_T]
|
||||
@@ -139,7 +139,7 @@ class DictWriter(Generic[_T]):
|
||||
def writerow(self, rowdict: Mapping[_T, Any]) -> Any: ...
|
||||
def writerows(self, rowdicts: Iterable[Mapping[_T, Any]]) -> None: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
class Sniffer:
|
||||
preferred: list[str]
|
||||
|
||||
Reference in New Issue
Block a user