Skip to content

PositionEncodingKind hook #270

@tombh

Description

@tombh

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions