Skip to content

Fully support pattern matching on structs #28

Closed

Description

@jcrist

Python 3.10 adds support for pattern matching. I believe this should work already for structs with purely keyword arguments, but will need to generate a __match_args__ attribute to match on positional arguments as well.

Activity

  1. jakirkham commented on Jun 7, 2021

    @jakirkham

    cc @madsbk (in case this is of interest 🙂)

  2. goodboy commented on Oct 13, 2021

    @goodboy

    ohhh hawt!

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