mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +08:00
stdlib: csv.DictReader.fieldnames should be Optional[Sequence[str]] (#3752)
This commit is contained in:
1 parent
6600dabd5c
commit
daa738f70e
1 file changed
+1
-1
@@ -55,7 +55,7 @@ class DictReader(Iterator[_DRMapping]):
|
||||
reader: _reader
|
||||
dialect: _DialectLike
|
||||
line_num: int
|
||||
fieldnames: Sequence[str]
|
||||
fieldnames: Optional[Sequence[str]]
|
||||
def __init__(
|
||||
self,
|
||||
f: Iterable[Text],
|
||||
|
||||
Reference in new issue
Block a user