When I try to use lsprotocol.converters.get_converter to parse the following (only the key part included):
{
"jsonrpc": "2.0",
"id": "1195cd79-60e6-412b-bc6a-9c77b6e5d7c1",
"result": {
"capabilities": {
"notebookDocumentSync": {
"notebookSelector": [
{
"cells": [
{
"language": "python"
}
]
}
],
"save": false
}
}
}
}
I'm getting the following error (again, only the key part included):
cattrs.errors.StructureHandlerNotFoundError: Unsupported type: typing.Union[str, lsprotocol.types.NotebookDocumentFilterNotebookType, lsprotocol.types.NotebookDocumentFilterScheme, lsprotocol.types.NotebookDocumentFilterPattern, NoneType]. Register a structure hook for it.
I'm not sure, but thing that looks suspicious to me there is NoneType.
When I try to use
lsprotocol.converters.get_converterto parse the following (only the key part included):{ "jsonrpc": "2.0", "id": "1195cd79-60e6-412b-bc6a-9c77b6e5d7c1", "result": { "capabilities": { "notebookDocumentSync": { "notebookSelector": [ { "cells": [ { "language": "python" } ] } ], "save": false } } } }I'm getting the following error (again, only the key part included):
I'm not sure, but thing that looks suspicious to me there is
NoneType.