Skip to content

question: how to query options used to create Struct #327

Description

@tlambert03

Description

I'm wondering if there's a way to query the configuration kwargs passed to the Struct metaclass.
For example, how might I tell if a Struct was defined with class M(msgspec.Struct, frozen=True) (without trying to set an attribute and catching the exception)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions