Skip to content

Commit b68c352

Browse files
committed
fix: remove LiteralString, use Any for fixing issue on Python 3.10
Closed #45
1 parent 467c55e commit b68c352

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rplugin/python3/copilot-plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@pynvim.plugin
11-
class CopilotAgentPlugin(object):
11+
class CopilotPlugin(object):
1212
def __init__(self, nvim: pynvim.Nvim):
1313
self.nvim: MyNvim = MyNvim(nvim, PLUGIN_MAPPING_CMD, PLUGIN_AUTOCMD_CMD)
1414
self.vsplit_chat_handler = None

rplugin/python3/mypynvim/core/buffer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import TYPE_CHECKING, Any, Callable, Dict, LiteralString, Union
3+
from typing import TYPE_CHECKING, Any, Callable, Dict, Union
44

55
from pynvim.api import Buffer
66

@@ -65,7 +65,7 @@ def lines(
6565
def clear(self):
6666
self.nvim.api.buf_set_lines(self.buf.handle, 0, -1, True, [])
6767

68-
def append(self, lines: list[str] | list[LiteralString]):
68+
def append(self, lines: list[str] | list[Any]):
6969
self.nvim.api.buf_set_lines(self.buf.handle, -1, -1, True, lines)
7070

7171
# extmark methods

0 commit comments

Comments
 (0)