Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

LangQi99
Copy link
Contributor

@LangQi99 LangQi99 commented Sep 9, 2025

PR summary

Addresses issue #30525

PR checklist

@QuLogic
Copy link
Member

QuLogic commented Sep 9, 2025

I'm of two minds on this. It's only a problem if you have PyGObject 3.54 and you set warnings to be errors. The latter is something we do in our tests explicitly, but I'm not sure if it's that common for people to do so. I also don't know that only GioUnix is a problem based on the upstream commit.

@LangQi99
Copy link
Contributor Author

LangQi99 commented Sep 9, 2025

Hi @QuLogic,

Thanks for taking the time to review this and for your insightful comments.

I completely agree with your assessment that this warning only becomes an error under specific conditions (PyGObject 3.54 + warnings as errors). You're right that most end-users may not encounter this.

However, for developers who do run into this (like in our own CI pipeline or anyone who enables stricter warnings), the failing tests create immediate friction. It generates unnecessary noise and notifications, and can cause contributors to spend time wondering if they've introduced a new bug.

My intention with this PR is to provide a quick, pragmatic fix to improve the immediate developer experience and keep our test suite clean. It's meant as a "stopgap" measure to resolve the current annoyance.

I'm definitely open to a more comprehensive solution that addresses any other modules with similar import issues, as you alluded to. Perhaps we can merge this simple fix for now to solve the immediate problem, and I (or someone else) can open a new issue to track the larger task of auditing and applying more explicit version requirements across the board?

What do you think of this approach?

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

This is a reasonable stopgap.

@tacaswell tacaswell merged commit 75e7802 into matplotlib:main Sep 9, 2025
40 checks passed
@tacaswell tacaswell added this to the v3.11.0 milestone Sep 9, 2025
@tacaswell
Copy link
Member

I created an issue and flagged it as release critical for 3.11 but merged for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants