Skip to content

Union of legit types is also a legit type #1796

Answered by JelleZijlstra
sassanh asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is a use case for PEP-747. A union is not an instance of type, so it is not assignable to type[].

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sassanh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants