You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to search over open and closed issues, but I found nothing. If it is an expected behavior, then it will be nice to document this.
The text was updated successfully, but these errors were encountered:
simon-liebehenschel
changed the title
pep 604 typing rewrites"
"pep 604 typing rewrites" does not support annotated variables
May 23, 2022
simon-liebehenschel
changed the title
"pep 604 typing rewrites" does not support annotated variables
"Union" is not replaced with "|" in user-defined type hints
May 23, 2022
Should the behavior in pyupgrade be changed now that mypy supports the PEP604 syntax python/mypy#9880, so that user-defined type-hints with Union aren't ignored?
Sample code:
Current result:
No changes
Expected result
pre-commit config:
I've tried to search over open and closed issues, but I found nothing. If it is an expected behavior, then it will be nice to document this.
The text was updated successfully, but these errors were encountered: