Skip to content

PositionEncodingKind hook #270

Description

Does this cattrs hook need to be added?

converter.register_structure_hook(
    Union[PositionEncodingKind, str, None], lambda obj, _: obj
)

I'm adding support for LSP 3.17's position encoding negotiation in Pygls and I was getting errors during server initialisation. The PR is here openlawlibrary/pygls#375

It's the first time I've come across this area of the codebase, so I'm not completely clear about what the best solution is.

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions