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

TYP: Add typing on mathtext internals#26541

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
ksunden merged 7 commits intomatplotlib:mainfromQuLogic:mathtext-type
Aug 31, 2023

Conversation

QuLogic
Copy link
Member

PR summary

This adds typing to all of_mathtext.py and cuts downmypy --strict errors for it from >400 to 14 (all but one of which are pyparsing issues). As a proof of concept, this applies all type hintsinline.

There is also some refactoring to avoid re-using variables with mixed types, and adding more explicit types for someSimpleNamespace. These could be split into separate PRs if desired, but are separate commits at least.

It is based on#26540.

PR checklist

Pyparsing allows you to leave out the parameters (starting from theleft) if they are unused.
mypy rightfully complains that these methods called in the base classdon't exist, so correctly indicate what should be implemented there.The ABC is not strictly necessary, but it helps with understanding as alot of these have code that makes them seem like _not_ an ABC.
Just as enabling the packrat cache occurs on the class overall, so doesthe reset.
@oscargusoscargus added this to thev3.8.0 milestoneAug 31, 2023
@ksundenksunden merged commit56732ff intomatplotlib:mainAug 31, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestAug 31, 2023
@QuLogicQuLogic deleted the mathtext-type branchAugust 31, 2023 19:03
QuLogic added a commit that referenced this pull requestAug 31, 2023
…541-on-v3.8.xBackport PR#26541 on branch v3.8.x (TYP: Add typing on mathtext internals)
@ksundenksunden mentioned this pull requestSep 15, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ksundenksundenksunden approved these changes

@oscargusoscargusoscargus approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@ksunden@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp