diff --git a/plugin/core/protocol.py b/plugin/core/protocol.py index d810d40d4..f2e9aa651 100644 --- a/plugin/core/protocol.py +++ b/plugin/core/protocol.py @@ -6285,4 +6285,4 @@ def to_lsp(self) -> Position: def is_text_edit(value: Any) -> TypeGuard[TextEdit]: - return isinstance(value, dict) and bool(value.get('range')) and bool(value.get('newText')) + return isinstance(value, dict) and 'range' in value and 'newText' in value