File tree Expand file tree Collapse file tree 4 files changed +10
-20
lines changed Expand file tree Collapse file tree 4 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 1313import typing as t
1414import warnings
1515
16+ from typing_extensions import Self
17+
1618from libtmux .common import has_gte_version , has_lt_version , tmux_cmd
1719from libtmux .constants import (
1820 PANE_DIRECTION_FLAG_MAP ,
2628from . import exc
2729
2830if t .TYPE_CHECKING :
29- import sys
3031 import types
3132
3233 from .server import Server
3334 from .session import Session
3435 from .window import Window
3536
36- if sys .version_info >= (3 , 11 ):
37- from typing import Self
38- else :
39- from typing_extensions import Self
4037
4138logger = logging .getLogger (__name__ )
4239
Original file line number Diff line number Diff line change 1515import typing as t
1616import warnings
1717
18+ from typing_extensions import Self
19+
1820from libtmux ._internal .query_list import QueryList
1921from libtmux .common import tmux_cmd
2022from libtmux .neo import fetch_objs
3739 import types
3840
3941 if sys .version_info >= (3 , 10 ):
40- from typing import Self , TypeAlias
42+ from typing import TypeAlias
4143 else :
42- from typing_extensions import Self , TypeAlias
44+ from typing_extensions import TypeAlias
4345
4446 DashLiteral : TypeAlias = t .Literal ["-" ]
4547
Original file line number Diff line number Diff line change 1313import typing as t
1414import warnings
1515
16+ from typing_extensions import Self
17+
1618from libtmux ._internal .query_list import QueryList
1719from libtmux .constants import WINDOW_DIRECTION_FLAG_MAP , WindowDirection
1820from libtmux .formats import FORMAT_SEPARATOR
3133)
3234
3335if t .TYPE_CHECKING :
34- import sys
3536 import types
3637
3738 from libtmux .common import tmux_cmd
3839
39- if sys .version_info >= (3 , 11 ):
40- from typing import Self
41- else :
42- from typing_extensions import Self
43-
4440 from .server import Server
4541
4642
Original file line number Diff line number Diff line change 1313import typing as t
1414import warnings
1515
16+ from typing_extensions import Self
17+
1618from libtmux ._internal .query_list import QueryList
1719from libtmux .common import has_gte_version , tmux_cmd
1820from libtmux .constants import (
2830from .common import PaneDict , WindowOptionDict , handle_option_error
2931
3032if t .TYPE_CHECKING :
31- import sys
3233 import types
3334
3435 from .server import Server
3536 from .session import Session
3637
37- if sys .version_info >= (3 , 11 ):
38- from typing import Self
39- else :
40- from typing_extensions import Self
41-
42-
4338logger = logging .getLogger (__name__ )
4439
4540
You can’t perform that action at this time.
0 commit comments