Skip to content

Conversation

@musicinmybrain
Copy link

Add typing-extensions to requirements-tests.txt, since tests/test_main.py imports it,

from typing_extensions import Annotated, get_type_hints

…but at the same time, since typing in the Python standard library provides both Annotated and get_type_hints, adapt the tests to use the standard library instead on Python 3.9 and later, and conditionalize the typing-extensions dependency accordingly.

Add `typing-extensions` to `requirements-tests.txt` since
`tests/test_main.py` imports it; but at the same time, since `typing` in
the Python standard library provides both `Annotated` and
`get_type_hints`, adapt the tests to use the standard library instead on
Python 3.9 and later.
@svlandeg svlandeg changed the title Add typing-extensions to test deps. for Python <3.9 ➕ Add typing-extensions to test requirements for Python < 3.9 Oct 27, 2025
Copy link
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good to merge now. Thanks @musicinmybrain!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants