reagento / adaptix

An extremely flexible and configurable data model conversion library.
https://adaptix.readthedocs.io
Apache License 2.0
365 stars 23 forks source link

Add workaround for `object.__init__` as having no args/kwargs #209

Open Tishka17 opened 1 year ago

Tishka17 commented 1 year ago

For object.__init__ signature is incorrect, so we will expect some args for classes like

class A:
   pass

to fix it we could check if cls.__init__ is object.__init__

zhPavel commented 3 months ago

We should add provider raising CannotProvide with note that this type has __init__ of object