You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run e2e tests for MicroPython, the constructors test fails with:
File "python/e2e-tests/out/python-consumer.py", line 6, in <module>
File "/home/piotr/repos/priv/kotlin-python/python/e2e-tests/out/compiled.py", line 13692, in multi12
File "/home/piotr/repos/priv/kotlin-python/python/e2e-tests/out/compiled.py", line 13670, in MultiConstructors1_init__Create_
AttributeError: type object 'MultiConstructors1' has no attribute '__new__'
Looks like __new__ is another magic method unavailable on MicroPython. We had to use + instead of __add__ already. Not sure if there's an equivalent here, but still it's a must to fix it given we want to support MP.
The text was updated successfully, but these errors were encountered:
krzema12
changed the title
AttributeError: type object 'MultiConstructors1' has no attribute '__new__'
Adjust for no __new__ method on MicroPython
Nov 30, 2021
When trying to run e2e tests for MicroPython, the constructors test fails with:
Looks like
__new__
is another magic method unavailable on MicroPython. We had to use+
instead of__add__
already. Not sure if there's an equivalent here, but still it's a must to fix it given we want to support MP.The text was updated successfully, but these errors were encountered: