[Enhancement]: opinions on isinstance
with tuple
or union (|
)?
#345
Labels
enhancement
New feature or request
isinstance
with tuple
or union (|
)?
#345
Overview
It turns out with Python 3.10+ that
isinstance
(docs) supports union syntax:Proposal
Actually I think union syntax is pretty slick, and easier to read. I think it would be a cool
refurb
rule to suggest this refactor.What do you think?
The text was updated successfully, but these errors were encountered: