@match_class_typing
class Foo:
def __init__(self, val: list = []):
self.val = val
if __name__ == "__main__":
print(Foo)
>>> <strongtyping.strong_typing.match_class_typing object at 0x7f97fd033fd0>
but it should be
>>> <class '__main__.Foo'>
The fix:
put it inside match_class_typing
def repr(self):
return repr(self.cls)
Describe the bug
but it should be
The fix: put it inside match_class_typing def repr(self): return repr(self.cls)