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:
Eric Traut
2019-09-23 09:24:45 -07:00
committed by Sebastian Rittau
parent a011d1945e
commit c879ff05aa

View File

@@ -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: ...