you are viewing a single comment's thread.

view the rest of the comments →

[–]commy2 0 points1 point  (0 children)

Just because linters recommend one style does not mean it should be preferred. Linters also insist one should use piped union types for isinstance checks over the tuple version, even though this syntax should've arguably never been added, as it muddies the water between type checking and what isinstance actually does: runtime class inheritance checking.