From c879ff05aac14e15a5e3982c0975ae7ab341fd60 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Mon, 23 Sep 2019 09:24:45 -0700 Subject: [PATCH] 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) --- stdlib/2and3/csv.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/csv.pyi b/stdlib/2and3/csv.pyi index da5c709df..28a35fab9 100644 --- a/stdlib/2and3/csv.pyi +++ b/stdlib/2and3/csv.pyi @@ -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: ...