Skip to content

src/__init__.py: fix failure caused by type hints on python < 3.11.#4680

Merged
julian-smith-artifex-com merged 3 commits into
mainfrom
jules
Sep 5, 2025
Merged

src/__init__.py: fix failure caused by type hints on python < 3.11.#4680
julian-smith-artifex-com merged 3 commits into
mainfrom
jules

Conversation

@julian-smith-artifex-com
Copy link
Copy Markdown
Collaborator

typing.Self is only available on python-3.11 and later. The fix is to simply use the class name as a string.

typing.Self is only available on python-3.11 and later. The fix is to simply
use the class name as a string.
…gjmp().

Also enable asserts and improve diagnostics.
@julian-smith-artifex-com julian-smith-artifex-com merged commit 2db59c3 into main Sep 5, 2025
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants