Skip to content
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

Adds some overloads for the add_argument method #13053

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Diogo-Rossi
Copy link
Contributor

This is to foresee some exceptions like:

TypeError: _StoreAction.__init__() got an unexpected keyword argument 'version'
TypeError: _StoreConstAction.__init__() got an unexpected keyword argument 'nargs'
TypeError: _StoreConstAction.__init__() got an unexpected keyword argument 'type'
TypeError: _StoreTrueAction.__init__() got an unexpected keyword argument 'type'
TypeError: _StoreTrueAction.__init__() got an unexpected keyword argument 'choices'
TypeError: _CountAction.__init__() got an unexpected keyword argument 'type'
TypeError: _CountAction.__init__() got an unexpected keyword argument 'choices'

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

nox (https://github.com/wntrblm/nox)
+ nox/_option_set.py:288: error: Unused "type: ignore" comment  [unused-ignore]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant