folkerschamel, @ketmorco @zenforyen @diazona @bk1e @askonomm @cazabon @ado @kevin
This unsolved challenge bugs me:
How can I add type hints to the following #python classclass D:
def init(self, t):
self._t = t
def getattr(self, n):
def m(*args):
print("a")
getattr(self._t, n)(*args)
print("b")
return mso that #mypy can detect type bugs like the following?
class Q:
def f(self, x: int):
print(x)
q = Q()
d = D(q)
d.f(2.0)
Add comment