Skip to content

gh-132805 - annotationlib - Fix unions of real types and forward references.#132806

Closed
DavidCEllis wants to merge 4 commits intopython:mainfrom
DavidCEllis:fix-union-forwardref
Closed

gh-132805 - annotationlib - Fix unions of real types and forward references.#132806
DavidCEllis wants to merge 4 commits intopython:mainfrom
DavidCEllis:fix-union-forwardref

Conversation

@DavidCEllis
Copy link
Contributor

@DavidCEllis DavidCEllis commented Apr 22, 2025

Potential fix for #132805

This adds a create_unions parameter to _StringifierDict which - if set to True - creates unions between _Stringifier instances instead of trying to join them with ast methods. This is set to True only for Format.FORWARDREF, the behaviour is unchanged for Format.STRING.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant