Repository navigation
chore: enable pep 563/585 - #5088
Conversation
|
I think this might be a bit too aggressive -- is the new union syntax really available? I see all the tests pass, but according to PEP 604 this wasn't added til 3.10. My memory is a bit rusty however. |
|
Yea, you're right technically I should have noted that |
|
A second PR adding Consensus seems to be that the new Union syntax is harmless and nicer to write. Let's go ahead with this. |
neersighted
left a comment
There was a problem hiding this comment.
Approved, but I'd like to wait for at least one other maintainer to eyeball this before we merge.
|
I don't hate this. I've got a feeling that the |
I checked, it can definitely remove them, but I can't find any indication of it adding them. See asottile/pyupgrade#255 (comment) for an explanation of why it doesn't support that |
|
rebased due to conflicts |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This enables PEP 563 and PEP 585 🔥
Blocked by #5055
Relates-To: #4997