Skip to content

Make attrs model hashable #429

Open
Open

Description

@observerw

Since data models in lsprotocol.types only contain basic data types and not likely needs to change their properties dynamically, it would be nice to mark them as @attrs.define(frozen=True) so that they will be hashable, as attrs documentation says. This change will be convenient for user to do some caching based on lsprotocol.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions