Skip to content

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

Description

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 Tin Tvrtković (@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?

Activity

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

Metadata

Metadata

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