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

Create RCKeyType#30316

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
QuLogic merged 9 commits intomatplotlib:mainfromZPyrolink:typing/rc
Oct 30, 2025
Merged

Create RCKeyType#30316

QuLogic merged 9 commits intomatplotlib:mainfromZPyrolink:typing/rc
Oct 30, 2025

Conversation

@ZPyrolink
Copy link
Contributor

PR summary

This PR create types for the RC (Runtime Configuration)

  • CreateRcKeyType
  • CreateRcGroupType

These types are used on:

  • RcParams.__setitem__
  • RcParams.__getitem__
  • matplotlib.rc

PR checklist

@rcomer
Copy link
Member

Hi@ZPyrolink do you need some help getting this PR ready for review?

@ZPyrolink
Copy link
ContributorAuthor

Hi, sorry, I was taking a break and forgot to push my last commit and set the PR as ready for review. I only had one problem with mypy corrected with a use of RcKeyType and # type: ignore[index] (I don't know if there is another solution for this one).

@ZPyrolinkZPyrolink marked this pull request as ready for reviewSeptember 7, 2025 13:51
super().__init__(default_font_prop,load_glyph_flags)
fortexfontin"cal rm tt it bf sf bfit".split():
prop=mpl.rcParams['mathtext.'+texfont]
prop=mpl.rcParams['mathtext.'+texfont]# type: ignore[index]
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

There is no getter for a group so I think ignoring the error is the only solution.

Copy link
Member

@timhoffmtimhoffmSep 8, 2025
edited
Loading

Choose a reason for hiding this comment

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

I assume mypy is complaining here. Would it help to make the list explicit?

fortexfontin ["cal","rm","tt","it","bf","sf","bfit"]:

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Unfortunately mypy considertextfont as astr and the sum also as str so we have the same error

timhoffm reacted with confused emoji
Copy link
Member

Choose a reason for hiding this comment

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

Ok in that case, ignoring is likely the simplest solution.

super().__init__(default_font_prop,load_glyph_flags)
fortexfontin"cal rm tt it bf sf bfit".split():
prop=mpl.rcParams['mathtext.'+texfont]
prop=mpl.rcParams['mathtext.'+texfont]# type: ignore[index]
Copy link
Member

Choose a reason for hiding this comment

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

Ok in that case, ignoring is likely the simplest solution.

@QuLogic
Copy link
Member

This is a bit outdated, but I'm going to merge and open a followup PR.

@QuLogicQuLogic merged commitcd3685f intomatplotlib:mainOct 30, 2025
42 of 44 checks passed
@QuLogicQuLogic added this to thev3.11.0 milestoneOct 30, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@timhoffmtimhoffmtimhoffm approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

v3.11.0

Development

Successfully merging this pull request may close these issues.

[MNT] [TYPING]: Use of Literal

4 participants

@ZPyrolink@rcomer@QuLogic@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp