basedpyright
basedpyright copied to clipboard
Fix `TypeGuard`
It's not good
we should probably also look into whether the new TypeIs fixes any of the same issues that basedmypy's TypeGuard did
Ah yes, TypeIs == basedmypy x is T
Pep TypeGuard == basedmypy x is T if True else False
They serve two different purposes and both are needed for different cases.
Apart from that they both exhibit the same unsafe behaviours