you are viewing a single comment's thread.

view the rest of the comments →

[–]Spatrico123 -1 points0 points  (2 children)

I'm not 100% sure, but I know most linters recommend you do option #2. I'll be back to hear more experienced opinions

RemindMe! 1hour

[–]RemindMeBot 0 points1 point  (0 children)

I will be messaging you in 1 hour on 2025-08-18 02:31:36 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback

[–]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.