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 authored and Sebastian Rittau committed 2019-09-23 18:24:45 +02:00
1 parent a011d1945e
commit c879ff05aa
1 file changed
+1 -1
+1 -1
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: ...