|
17 | 17 | from . import exc |
18 | 18 |
|
19 | 19 | if t.TYPE_CHECKING: |
20 | | - from typing_extensions import Literal |
21 | | - |
22 | 20 | from .server import Server |
23 | 21 | from .session import Session |
24 | 22 | from .window import Window |
@@ -158,8 +156,8 @@ def resize_pane(self, *args: t.Any, **kwargs: t.Any) -> "Pane": |
158 | 156 |
|
159 | 157 | def capture_pane( |
160 | 158 | self, |
161 | | - start: t.Union["Literal['-']", t.Optional[int]] = None, |
162 | | - end: t.Union["Literal['-']", t.Optional[int]] = None, |
| 159 | + start: t.Union["t.Literal['-']", t.Optional[int]] = None, |
| 160 | + end: t.Union["t.Literal['-']", t.Optional[int]] = None, |
163 | 161 | ) -> t.Union[str, t.List[str]]: |
164 | 162 | """ |
165 | 163 | Capture text from pane. |
@@ -248,12 +246,12 @@ def send_keys( |
248 | 246 |
|
249 | 247 | @overload |
250 | 248 | def display_message( |
251 | | - self, cmd: str, get_text: "Literal[True]" |
| 249 | + self, cmd: str, get_text: "t.Literal[True]" |
252 | 250 | ) -> t.Union[str, t.List[str]]: |
253 | 251 | ... |
254 | 252 |
|
255 | 253 | @overload |
256 | | - def display_message(self, cmd: str, get_text: "Literal[False]") -> None: |
| 254 | + def display_message(self, cmd: str, get_text: "t.Literal[False]") -> None: |
257 | 255 | ... |
258 | 256 |
|
259 | 257 | def display_message( |
|
0 commit comments