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

utils class WifiConfig ignores kwargs (since using @pydantic_dataclass) #43

Closed
vlt opened this issue Oct 22, 2022 · 1 comment
Closed
Assignees
Milestone

Comments

@vlt
Copy link
Contributor

vlt commented Oct 22, 2022

The @pydantic_dataclass deorator introduced in 12f68b9 lets __init__() ignore the values from kwargs:

WifiConfig(
    ssid="Foo",
)

doesn’t work, while

WifiConfig(
    "Foo",
)

does.

vlt added a commit to vlt/django-qr-code that referenced this issue Oct 22, 2022
vlt added a commit to vlt/django-qr-code that referenced this issue Oct 22, 2022
@vlt vlt changed the title utils classes like WifiConfig ignore kwargs (since using @pydantic_dataclass) utils class WifiConfig ignores kwargs (since using @pydantic_dataclass) Oct 22, 2022
philippe-docourt added a commit that referenced this issue Apr 10, 2023
github issue #43: @pydantic_dataclass needs class variables
philippe-docourt pushed a commit that referenced this issue Apr 10, 2023
@philippe-docourt philippe-docourt self-assigned this Apr 15, 2023
@philippe-docourt philippe-docourt added this to the Version 3.1.2 milestone Apr 15, 2023
@philippe-docourt
Copy link
Member

Fixed in version 3.1.2

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