File tree 4 files changed +10
-20
lines changed
4 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 13
13
import typing as t
14
14
import warnings
15
15
16
+ from typing_extensions import Self
17
+
16
18
from libtmux .common import has_gte_version , has_lt_version , tmux_cmd
17
19
from libtmux .constants import (
18
20
PANE_DIRECTION_FLAG_MAP ,
26
28
from . import exc
27
29
28
30
if t .TYPE_CHECKING :
29
- import sys
30
31
import types
31
32
32
33
from .server import Server
33
34
from .session import Session
34
35
from .window import Window
35
36
36
- if sys .version_info >= (3 , 11 ):
37
- from typing import Self
38
- else :
39
- from typing_extensions import Self
40
37
41
38
logger = logging .getLogger (__name__ )
42
39
Original file line number Diff line number Diff line change 15
15
import typing as t
16
16
import warnings
17
17
18
+ from typing_extensions import Self
19
+
18
20
from libtmux ._internal .query_list import QueryList
19
21
from libtmux .common import tmux_cmd
20
22
from libtmux .neo import fetch_objs
37
39
import types
38
40
39
41
if sys .version_info >= (3 , 10 ):
40
- from typing import Self , TypeAlias
42
+ from typing import TypeAlias
41
43
else :
42
- from typing_extensions import Self , TypeAlias
44
+ from typing_extensions import TypeAlias
43
45
44
46
DashLiteral : TypeAlias = t .Literal ["-" ]
45
47
Original file line number Diff line number Diff line change 13
13
import typing as t
14
14
import warnings
15
15
16
+ from typing_extensions import Self
17
+
16
18
from libtmux ._internal .query_list import QueryList
17
19
from libtmux .constants import WINDOW_DIRECTION_FLAG_MAP , WindowDirection
18
20
from libtmux .formats import FORMAT_SEPARATOR
31
33
)
32
34
33
35
if t .TYPE_CHECKING :
34
- import sys
35
36
import types
36
37
37
38
from libtmux .common import tmux_cmd
38
39
39
- if sys .version_info >= (3 , 11 ):
40
- from typing import Self
41
- else :
42
- from typing_extensions import Self
43
-
44
40
from .server import Server
45
41
46
42
Original file line number Diff line number Diff line change 13
13
import typing as t
14
14
import warnings
15
15
16
+ from typing_extensions import Self
17
+
16
18
from libtmux ._internal .query_list import QueryList
17
19
from libtmux .common import has_gte_version , tmux_cmd
18
20
from libtmux .constants import (
28
30
from .common import PaneDict , WindowOptionDict , handle_option_error
29
31
30
32
if t .TYPE_CHECKING :
31
- import sys
32
33
import types
33
34
34
35
from .server import Server
35
36
from .session import Session
36
37
37
- if sys .version_info >= (3 , 11 ):
38
- from typing import Self
39
- else :
40
- from typing_extensions import Self
41
-
42
-
43
38
logger = logging .getLogger (__name__ )
44
39
45
40
You can’t perform that action at this time.
0 commit comments