Skip to content

Fix error inporting Unpack in older Python versions#60

Merged
alex9smith merged 2 commits intomainfrom
fix-unpack-in-older-python
Mar 31, 2025
Merged

Fix error inporting Unpack in older Python versions#60
alex9smith merged 2 commits intomainfrom
fix-unpack-in-older-python

Conversation

@alex9smith
Copy link
Owner

Unpack was only moved to the native typing in Python version 3.12 so older versions now fail with an ImportError.

Install the typing_extensions library which backports these changes and try to import fron that if the native import fails.

This closes #59

`Unpack` was only moved to the native `typing` in Python version 3.12 so
older versions now fail with an `ImportError`.

Install the `typing_extensions` library which backports these changes
and try to import fron that if the native import fails.

This closes #59
@alex9smith alex9smith merged commit 5c26ab3 into main Mar 31, 2025
2 checks passed
@alex9smith alex9smith deleted the fix-unpack-in-older-python branch March 31, 2025 09:22
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.

ImportError: cannot import name 'Unpack' from 'typing'

1 participant