Skip to content

Conversation

@jorenham
Copy link
Contributor

On Python 3.14, this module attribute seems to exist in certain situations:

>>> if True:
...     a: str
...     
>>> __conditional_annotations__
{0}

It's a pretty esoteric attribute without any documentation. It seems to have been added in python/cpython#130935

Either way, stubtest was complaining about it in scipy-stubs. So all things considered, I figured it'd be best to just ignore it.

@JelleZijlstra JelleZijlstra merged commit dabcce9 into python:master Dec 10, 2025
16 checks passed
@jorenham jorenham deleted the stubtest/__conditional_annotations__ branch December 10, 2025 14:28
@github-project-automation github-project-automation bot moved this from Todo to Done in GC-Content-Calculator Dec 12, 2025
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