mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Remove redundant inheritances from Iterator (#12814)
This commit is contained in:
@@ -24,7 +24,7 @@ if sys.version_info >= (3, 12):
|
||||
from _csv import QUOTE_NOTNULL as QUOTE_NOTNULL, QUOTE_STRINGS as QUOTE_STRINGS
|
||||
|
||||
from _typeshed import SupportsWrite
|
||||
from collections.abc import Collection, Iterable, Iterator, Mapping, Sequence
|
||||
from collections.abc import Collection, Iterable, Mapping, Sequence
|
||||
from typing import Any, Generic, Literal, TypeVar, overload
|
||||
from typing_extensions import Self
|
||||
|
||||
@@ -66,7 +66,7 @@ class excel(Dialect): ...
|
||||
class excel_tab(excel): ...
|
||||
class unix_dialect(Dialect): ...
|
||||
|
||||
class DictReader(Iterator[dict[_T | Any, str | Any]], Generic[_T]):
|
||||
class DictReader(Generic[_T]):
|
||||
fieldnames: Sequence[_T] | None
|
||||
restkey: _T | None
|
||||
restval: str | Any | None
|
||||
|
||||
Reference in New Issue
Block a user