Skip to content

Commit 55eb19d

Browse files
authored
Improve csv.DictReader (#8061)
1 parent b5802d0 commit 55eb19d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/csv.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class unix_dialect(Dialect):
7979
lineterminator: str
8080
quoting: _QuotingType
8181

82-
class DictReader(Generic[_T], Iterator[_DictReadMapping[_T, str]]):
82+
class DictReader(Generic[_T], Iterator[_DictReadMapping[_T | Any, str | Any]]):
8383
fieldnames: Sequence[_T] | None
8484
restkey: str | None
8585
restval: str | None
@@ -123,7 +123,7 @@ class DictReader(Generic[_T], Iterator[_DictReadMapping[_T, str]]):
123123
strict: bool = ...,
124124
) -> None: ...
125125
def __iter__(self: Self) -> Self: ...
126-
def __next__(self) -> _DictReadMapping[_T, str]: ...
126+
def __next__(self) -> _DictReadMapping[_T | Any, str | Any]: ...
127127
if sys.version_info >= (3, 12):
128128
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
129129

0 commit comments

Comments
 (0)