You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should csv.DictWriter require fieldnames to be a Sequence? #5993
I realise that according to the docs the fieldnames parameter to DictWriter should be a sequence, however code which doesn't actually pass a sequence (instead perhaps passing dict.keys()) does in fact work and may have a well-defined key ordering.
Should the typeshed record what actually works or closely match the docs?
(Should the docs be updated?)
Activity
srittau commentedon Sep 1, 2021
Generally, we prefer to follow the implementation, not the docs in typeshed.
Relax DictWriter.fieldnames closer to implementation
Relax DictWriter.fieldnames closer to implementation (#5994)