Skip to content

Conversation

cormoran
Copy link
Contributor

The default value of metavar in argparse.Action is None, therefore argparse.Action.metavar and the metavar argument of argparse.ArgumentParser.add_argument should be Optional.

https://github.com/python/cpython/blob/master/Lib/argparse.py#L809
https://github.com/python/cpython/blob/2.7/Lib/argparse.py#L779

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@srittau srittau merged commit 632eadc into python:master Jan 13, 2019
yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this pull request Jan 23, 2019
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