Skip to content

Conversation

@jspaezp
Copy link
Contributor

_ExtendAction was added to argparse since python 3.8. I am adding it here, since it is missing

Reference of the addition to the standard library: python/cpython@aa32a7e

_ExtendAction was added to argparse since python 3.8. I am adding it here, since it is missing Reference of the addition to the standard library: python/cpython@aa32a7e
@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

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

Looks good! We need to use a sys.version_info guard, though, since it's not available on 3.7:

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@jspaezp
Copy link
ContributorAuthor

Thanks for the quick review!
Accepted the change!
Thanks, since it is my first contribution here I did not know we had to support py3.7

@github-actions
Copy link
Contributor

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

pylint (https://github.com/pycqa/pylint) + pylint/config/argument.py:370: error: Incompatible types in assignment (expression has type "Type[pylint.config.callback_actions._ExtendAction]", variable has type "Type[argparse._ExtendAction]") [assignment]+ pylint/config/argument.py:368: error: Unused "type: ignore" comment

Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks! And welcome to typeshed!

@AlexWaygoodAlexWaygood merged commit cc7d256 into python:masterSep 7, 2022
@jspaezpjspaezp deleted the patch-1 branch September 7, 2022 20:56
Sign up for freeto 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

@jspaezp@AlexWaygood