Closed jolaf closed 5 years ago
On vacation at the moment. I will have a look next week.
Thanks!
There is a fault in the typecheck profiler when checking a subscriptable return type in presence of self
. (Would be triggered also by a @classmethod
concerning cls
).
from pytypes import TypeChecker
class A:
def testmeth_agent_err(self) -> int:
return {}
a = A()
with TypeChecker():
a.testmeth_agent_err()
Thanks!
The following trivial code:
fails as follows: