Is there a way to implement a proxy object with mypyc?
For example, consider the following code which works fine with Python but not mypyc:
import typing
class Thing:
def __getattr__(self, name: str) -> typing.Any:
return 5
t = Thing()
print(t.lol)
Python output:
5
mypyc compiled output:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "blah.py", line 9, in <module>
print(t.lol)
AttributeError: 'Thing' object has no attribute 'lol'