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 some bugs found by typing#26444

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
tacaswell merged 4 commits intomatplotlib:mainfromQuLogic:type-bugs
Aug 3, 2023
Merged

Conversation

QuLogic
Copy link
Member

@QuLogicQuLogic commentedAug 3, 2023
edited
Loading

PR summary

There are 3 changes here:

  • When iterables were added toTable.auto_set_column_width inbug fix related #5479 #6047, the test added a string. Typing correctly points out that that is not accepted, and in fact it does not do anything (as shown in the test image) because column keys are ints, not strings, so the automatic width calculation is applied to nothing. So deprecate accepting random types here.
  • Fonts.used_characters was removed inCleanup _mathtext internal API #22204, butFonts.get_used_characters (which just returns that attribute) was not. This is private and can be removed directly, AFAICT.
  • Thefind_tex_file monkey patch in the test returned the wrong type, which doesn't technically break anything, but was confusing when comparing with the type stubs.

PR checklist

@QuLogicQuLogic added this to thev3.8.0 milestoneAug 3, 2023
When iterables were added inmatplotlib#6047, the test added a string. Typingcorrectly points out that that is not accepted, and in fact it does notdo anything (as shown in the test image) because column keys are ints,not strings.
This is never called, is on an internal class, and the attribute itaccesses doesn't exist as it was removed inmatplotlib#22204.
The normal function returns a `str`, so this patch returning bytes isconfusing.
`LogFormatterSciNotation.sublabel` is not an attribute that exists.There is the private `LogFormatterSciNotation._sublabels`, but thisobviously doesn't need to be set as the test is already passing.
@QuLogic
Copy link
MemberAuthor

Found one more thing:LogFormatterSciNotation.sublabel does not exist, so it did not have any effect in the test that set it. I've removed the line.

@tacaswelltacaswell merged commitaa3e00d intomatplotlib:mainAug 3, 2023
@QuLogicQuLogic deleted the type-bugs branchAugust 3, 2023 23:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@ksundenksundenksunden approved these changes

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

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@tacaswell@ksunden

[8]ページ先頭

©2009-2025 Movatter.jp