Skip to content

Regression introduced by cattrs v23.2.1 with Any | None #301

@jhossbach

Description

@jhossbach

Takeaway from python-lsp/python-lsp-ruff#61:

I managed to track it down. There's a type in lsprotocol.types, LSPAny, typed as Union[Any, None].
Looks like there's a regression in unstructuring this type, it used to be unstructured as the runtime type, and now is unstructured as Any.

Originally posted by @Tinche in python-lsp/python-lsp-ruff#61 (comment)

The issue is solved with cattrs>=23.2.2. Can we make the cattrs dependency more strict?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityneeds PR

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions