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

kw_only is only supported in Python >=3.10 #145

Open
antoinevg opened this issue Dec 17, 2024 · 0 comments
Open

kw_only is only supported in Python >=3.10 #145

antoinevg opened this issue Dec 17, 2024 · 0 comments
Assignees

Comments

@antoinevg
Copy link
Member

Just noticed that our current min Python version is 3.9.x which does not support kw_only. 😔

This isn't great because I can't think of another clean way to do:

return dataclass(new_cls, kw_only=True)

and

cls.__init__.__kwdefaults__[name] = value

Anyone else have ideas, short of bumping min Python version to 3.10?

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

No branches or pull requests

2 participants