Skip to content

Temp fix and document 3.11+ fix for contexts#2617

Merged
pushfoo merged 1 commit intopythonarcade:developmentfrom
pushfoo:fix-3.11-PIL-warnings
Mar 23, 2025
Merged

Temp fix and document 3.11+ fix for contexts#2617
pushfoo merged 1 commit intopythonarcade:developmentfrom
pushfoo:fix-3.11-PIL-warnings

Conversation

@pushfoo
Copy link
Member

@pushfoo pushfoo commented Mar 22, 2025

TL;DR: Encapsulating a with block in a function temp-fixes the context manager breaking

It's a silently failure on Python < 3.11 which becomes loud and possibly breaking for #f2616. If not breaking, it's certainly annoying.

  • Add work-around for 3.11+ warnings from Sphinx breaking PIL context managers (Weird, right?)
  • Add some notes on Sphinx interference with streams

* Add work-around for 3.11+ warnings from Sphinx breaking PIL context managers (Weird, right?)

* Add some notes on Sphinx interference with streams
@pushfoo pushfoo merged commit b258f3b into pythonarcade:development Mar 23, 2025
8 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.

1 participant