Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix argparse for Python 3.14#19020

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hauntsaninja merged 1 commit intopython:masterfromcdce8p:fix-argparse-3.14
May 3, 2025

Conversation

@cdce8p
Copy link
Collaborator

python/cpython#132323 added an optionalcolor argument to ArgumentParser. As a side effect the help formatters are now called with two new keyword argumentsprefix_chars andcolor. Add**kwargs to the customAugmentedHelpFormatter and pass it through to the super class.

@github-actions
Copy link
Contributor

According tomypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Collaborator

@hauntsaninjahauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks!

@hauntsaninjahauntsaninja merged commitd68ea35 intopython:masterMay 3, 2025
18 checks passed
@cdce8pcdce8p deleted the fix-argparse-3.14 branchMay 3, 2025 10:55
@srittau
Copy link
Contributor

This is the only remaining blocker for supporting Python 3.14 in typeshed (python/typeshed#13957). Is a release with this fix planned in the next few days? Otherwise I'd try to install mypy directly from GitHub in typeshed's CI.

@hauntsaninja
Copy link
Collaborator

There are rumours of a release soon in#18739

But doesn't really hurt to install mypy directly from master... we've done it so many times in typeshed history

@srittausrittau mentioned this pull requestMay 9, 2025
mdickinson added a commit to mdickinson/simplefractions that referenced this pull requestMay 17, 2025
This PR:- adds the missing `py.typed` marker file that indicates to consumersthat the code has usable type hints- moves type checks to the test job of `on-commit` GitHub Actionsworkflow, instead of the style job. (Those type checks arePython-version dependent, and we want our type hints to be valid for allsupported Python versions.)- fixes type hints to be Python 3.8-compatible on the`fraction_to_float.py` scriptNote: we're hitting a (known, fixed in main) issue with mypy and Python3.14, so we skip the type check on Python 3.14 for now. xref:python/mypy#19020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@cdce8p@srittau@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp