mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Changed type of fieldname parameter in DictWriter __init__ method from Sequence[str] to Iterable[str]. This allows it to work with the following code: (#3253)
This commit is contained in:
committed by
Sebastian Rittau
parent
a011d1945e
commit
c879ff05aa
@@ -79,7 +79,7 @@ class DictWriter(object):
|
||||
restval: Optional[Any]
|
||||
extrasaction: str
|
||||
writer: _writer
|
||||
def __init__(self, f: Any, fieldnames: Sequence[str],
|
||||
def __init__(self, f: Any, fieldnames: Iterable[str],
|
||||
restval: Optional[Any] = ..., extrasaction: str = ..., dialect: _Dialect = ...,
|
||||
*args: Any, **kwds: Any) -> None: ...
|
||||
def writeheader(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user