Skip to content

Fixed so importing from typing_extensions for earlier python versions.#31

Merged
JeanLucPons merged 1 commit intomainfrom
typing
Oct 15, 2025
Merged

Fixed so importing from typing_extensions for earlier python versions.#31
JeanLucPons merged 1 commit intomainfrom
typing

Conversation

@TeresiaOlsson
Copy link
Copy Markdown
Contributor

from typing import Self only works from python 3.11. For earlier versions from typing_extensions import Self has to be used. I added a fix for it but maybe there is some better way to handle compatibility for different python versions.

@JeanLucPons JeanLucPons merged commit 6a6b6d2 into main Oct 15, 2025
2 checks passed
@gubaidulinvadim gubaidulinvadim deleted the typing branch December 17, 2025 08:54
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