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.
Does this
cattrshook need to be added?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.