-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
csv
: annotate keyword arguments in various functions and methods
#7788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
csv
module stubscsv
: annotate **kwargs
in various methods
csv
: annotate **kwargs
in various methodscsv
: annotate keyword arguments in various methods
csv
: annotate keyword arguments in various methodscsv
: annotate keyword arguments in various functions and methods
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct, but while reviewing I noticed that our stubs for Dialect are wrong. I'll try to address that separately.
It doesn't seem like our csv stubs have had much TLC in a while :) |
_csv.reader
,_csv.writer
,_csv.register_dialect
,csv.DictReader.__init__
,csv.DictWriter.__init__
: none of these take arbitrary keyword arguments like the stub currently says. Instead, they all take keyword arguments corresponding to the fieldnames on_csv.Dialect
.