You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that mypy report type error for wrong "type error" argument and reveal type of completion_list as CompletionList, instead, I have:
$ mypy examples/json-extension/server/tests/unit/test_features.py
...
examples/json-extension/server/tests/unit/test_features.py:55: note: Revealed type is 'Any'
I would have expected something like:
$ mypy examples/json-extension/server/tests/unit/test_features.py
...
examples/json-extension/server/tests/unit/test_features.py:54: error: Argument 1 to "completions" has incompatible type "str"; expected "Optional[CompletionParams]"
examples/json-extension/server/tests/unit/test_features.py:55: note: Revealed type is 'pygls.types.CompletionList'
The text was updated successfully, but these errors were encountered:
Use a TypeVar so that type checkers understand that the signature is
same as the decorated functions, so that these functions can be
typechecked.
fixesopenlawlibrary#88
Use a TypeVar so that type checkers understand that the signature is
same as the decorated functions, so that these functions can be
typechecked.
fixesopenlawlibrary#88
Use a TypeVar so that type checkers understand that the signature is
same as the decorated functions, so that these functions can be
typechecked.
fixesopenlawlibrary#88
Use a TypeVar so that type checkers understand that the signature is
same as the decorated functions, so that these functions can be
typechecked.
fixesopenlawlibrary#88
If I use this patch on json-extension example:
I would expect that mypy report type error for wrong
"type error"
argument and reveal type ofcompletion_list
asCompletionList
, instead, I have:I would have expected something like:
The text was updated successfully, but these errors were encountered: