Skip to content

Commit dba8a89

Browse files
committed
!squash more
1 parent abedb21 commit dba8a89

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

libtmux/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
266266
logger.debug("self.stdout for {}: \n{}".format(" ".join(cmd), self.stdout))
267267

268268

269-
class TmuxMappingObject(MutableMapping):
270-
269+
# class TmuxMappingObject(MutableMapping[str, t.Union[str,int,bool]]):
270+
class TmuxMappingObject(MutableMapping[t.Any, t.Any]):
271271
r"""Base: :py:class:`MutableMapping`.
272272
273273
Convenience container. Base class for :class:`Pane`, :class:`Window`,
@@ -286,6 +286,7 @@ class TmuxMappingObject(MutableMapping):
286286
:class:`Pane` :attr:`Pane.formatter_prefix` pane\_
287287
================ ================================== ==============
288288
"""
289+
_info: t.Dict[t.Any, t.Any]
289290

290291
def __getitem__(self, key: str) -> str:
291292
return self._info[key]

libtmux/pane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
self.server._update_panes()
7878

7979
@property
80-
def _info(self) -> PaneDict:
80+
def _info(self) -> PaneDict: # type: ignore # mypy#1362
8181
attrs = {"pane_id": self._pane_id}
8282

8383
# from https://github.com/serkanyersen/underscore.py

libtmux/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self, server: "Server", session_id: str, **kwargs: t.Any) -> None:
7272
self.server._update_windows()
7373

7474
@property
75-
def _info(self) -> t.Optional[SessionDict]:
75+
def _info(self) -> t.Optional[SessionDict]: # type: ignore # mypy#1362
7676
attrs = {"session_id": str(self._session_id)}
7777

7878
def by(val: SessionDict) -> bool:

libtmux/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __repr__(self) -> str:
7878
)
7979

8080
@property
81-
def _info(self) -> WindowDict:
81+
def _info(self) -> WindowDict: # type: ignore # mypy#1362
8282
attrs = {"window_id": self._window_id}
8383

8484
# from https://github.com/serkanyersen/underscore.py

0 commit comments

Comments
 (0)