Skip to content

dest argument to add_argument is Optional #2040

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

Merged
merged 1 commit into from
Apr 11, 2018

Conversation

JelleZijlstra
Copy link
Member

argparse.py checks for None in _get_optional_kwargs.

argparse.py checks for None in _get_optional_kwargs.
@JelleZijlstra
Copy link
Member Author

See https://github.com/python/cpython/blob/master/Lib/argparse.py#L1476. This fixes a CI failure introduced by #1937.

@gvanrossum
Copy link
Member

Hm, what a pain. If I sync typeshed to this (after it's been merged) and cherry-pick the sync into the release-0.590 branch, I get a whole slew of extra typeshed PRs into the bargain.

To play it safe I would have to create a typeshed release branch and cp this into that, then sync that branch into mypy. It's doable, but a bit convoluted.

OTOH perhaps I'm being overly cautious. Let me see if just syncing to typeshed HEAD (after this) breaks anything in the Dropbox codebase.

@JelleZijlstra
Copy link
Member Author

For what it's worth, the PR that introduced the PR that introduced this issue (#1937) was only merged tonight too, so it's not in your release branch. So you could make a branch with just the enum fix from #2039.

@JelleZijlstra
Copy link
Member Author

The Travis failure here is just because the branch I used doesn't have #2039. This PR should be safe to merge.

@JelleZijlstra JelleZijlstra merged commit db98942 into master Apr 11, 2018
@JelleZijlstra JelleZijlstra deleted the JelleZijlstra-patch-1 branch April 11, 2018 04:47
@gvanrossum
Copy link
Member

gvanrossum commented Apr 11, 2018 via email

yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this pull request Jan 23, 2019
argparse.py checks for None in _get_optional_kwargs.
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.

2 participants