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 msgspec.structs.force_setattr #600

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Add msgspec.structs.force_setattr #600

merged 1 commit into from
Dec 4, 2023

Commits on Dec 4, 2023

  1. Add msgspec.structs.force_setattr

    This is an advanced (and potentially unsafe) function that allows for
    mutating a frozen struct. The primary use case for this is mutating the
    struct in a `__post_init__` method before returning. Most users
    shouldn't ever use this.
    jcrist committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    7bb8e12 View commit details
    Browse the repository at this point in the history