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

Fix #27: Work around mypy messing up __init__ #28

Merged

Conversation

ddanier
Copy link
Member

@ddanier ddanier commented Feb 13, 2024

Mark new slots introduced in ChangeDetectionMixin as PrivateAttr, although they are never used like this. mypy will then not think you are required to pass those attributes to __init__

@ddanier ddanier force-pushed the dev/#27-work-around-mypy-wanting-provate-slotsin-__init__ branch from 56f88e3 to 06a81a9 Compare February 16, 2024 10:19
@ahopey
Copy link

ahopey commented Mar 13, 2024

Any reason why this hasn't been merged yet? This would help us a lot, I'm just trying to understand the reason. Thank you!

@ddanier
Copy link
Member Author

ddanier commented Mar 14, 2024

@ahopey Sorry just haven't got the time. I wanted to think this through again, as the current solution feel a little bit like a workaround. Will try to get this resolved soon!

@ddanier ddanier merged commit fb57fe5 into main Mar 28, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants