Open pylint-bot opened 9 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):
Yeah, this is really useful for the flow control inference. I'll probably start working on flow control understanding after I release 1.5.
Originally reported by: Maarten ter Huurne (BitBucket: mthuurne, GitHub: @mthuurne?)
When I run pylint on the following code fragment:
it reports:
I think there are two things wrong here:
isinstance(obj, ClassA)
is true, it is certain that obj is of type ClassA, which should override any speculative inference