🐛 Fix support for UnionType with Python 3.11#676
🐛 Fix support for UnionType with Python 3.11#676standag wants to merge 3 commits intofastapi:masterfrom
Conversation
8b29313 to
a4fee7d
Compare
a4fee7d to
3881eb1
Compare
|
This worked like a charm! Thank you! |
|
This is a very nice addition 👍 |
|
Hello everyone, |
|
Sorry, I cannot, I haven't write access to this repository. |
|
The PR seems wonderful, why hasn't it been added yet? |
|
|
also resolves #348 |
|
Are there any updates on this pull request. Would love to not need to use |
|
@disrupted is @tiangolo the only one that can merge? Seems a bit wasteful that this is sitting here with 2 approves and a passing CI just waiting. |
Looks like it. My review only has symbolic value as I am not a maintainer. |
|
Related PR: #548 |
|
Will this be merged anytime soon? @tiangolo This has become a sore point with Typer in our code. |
svlandeg
left a comment
There was a problem hiding this comment.
I confirmed that this behaviour works in 3.10 but broke in 3.11, and the unit test introduced in this PR captures the bug nicely.
The fix is very clean and minimal, using the variables from _typing that were introduced precisely for this type of usage.
Thanks for the contribution @standag!
|
Dear Sebastian @tiangolo , |
Resolves #533