Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tishka17 opened this issue Feb 10, 2023 · 1 comment
Open

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

Tishka17 opened this issue Feb 10, 2023 · 1 comment
Labels
type: feature New feature or request

Comments

@Tishka17
Copy link
Member

Tishka17 commented Feb 10, 2023

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__

@Tishka17 Tishka17 added the 3.x label Feb 10, 2023
@zhPavel zhPavel removed the 3.x label Jun 8, 2024
@zhPavel
Copy link
Member

zhPavel commented Jun 9, 2024

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

@zhPavel zhPavel added the type: feature New feature or request label Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants