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
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
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