super().__init__(*args, **kwargs) doesn't pass kwargs to parent C class. #15464
Replies: 1 comment
-
Moved to github as bug. #15465 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a class like this:
Its parent is a custom C class that implements
make_new
and accepts positional and keyword arguments.When you pass just positional arguments to
Model()
in code using this subclass things work as expected. When you passkwargs
you get this error:TypeError: function doesn't take keyword arguments
It appears MicroPython refuses to pass the kwargs to the parent class. Note that the error is not coming from code being executed in our
make_new
in C. It appears something else has rejected thekwargs
being passed.Beta Was this translation helpful? Give feedback.
All reactions