Skip to content

Add an explicit silencer for deprecation warnings from pygobject. - #4885

Merged
mhsmith merged 2 commits into
beeware:mainfrom
freakboy3742:gtk-warning
Nov 11, 2026
Merged

mhsmith merged 2 commits into
beeware:mainfrom
freakboy3742:gtk-warning

Conversation

@freakboy3742

Copy link
Copy Markdown
Member

PyGObject includes references to AbstractEventLoopPolicy, which has been deprecated in Python 3.14, and has been removed in 3.16. It catches those warnings, but Toga promotes DeprecationWarnings, so they become visible again.

This adds explicit silencing of all warnings generated when importing PyGobject's event handling.

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool

@freakboy3742
freakboy3742 requested a review from mhsmith November 11, 2026 03:47
@mhsmith
mhsmith merged commit a97b0a4 into beeware:main Nov 11, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants