reportInvalidCast
for cast(None, object())
: "convert the expression to object
first"
#568
Labels
type checking / linting
issues relating to existing diagnostic rules or proposals for new diagnostic rules
https://basedpyright.com/?code=JYWwDg9gTgLgBDAnmYA7A5nAhgZwQKBgDoBjXGACgDkJUBTAGjggCMArOkygSm6A
So a couple of months ago I tried to do
which gave
So I decided to follow the advice, i.e.:
... but after I did that, it said it again. So it was obvious to me that I should keep at it for a while.
Then after I had cast
object
toobject
for the 3000th time, my brain raised aRecursionError
!So now I'm wondering if maybe there's a chance that there's a bug involved here, or if I should
brain.setrecursionlimit(1 << 20)
and give it another shot 🤔.Any thoughts?
The text was updated successfully, but these errors were encountered: