Skip to content

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Oct 10, 2025

The forward references in conformance/tests/annotations_forward_refs.py are no longer errors on Python 3.14, so it seems reasonable to me to mark them as E? instead of E, because whether or not this is an error depends on how the type checkers are configured (what Python version are they targeting?).

I saw that a similar pattern was used in typeddicts_alt_syntax.py to mark version-depend errors with E?, but I'm obviously open to other suggestions (e.g. removing these test assertions alltogether, if possible).

@JelleZijlstra
Copy link
Member

Thanks, this seems fine. Maybe in the long term we should have some way to configure the Python version in the conformance test suite.

@JelleZijlstra JelleZijlstra merged commit 89f5f7c into python:main Oct 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: conformance tests Issues with the conformance test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants