Skip to content

Commit 4d51e53

Browse files
committed
docs(Window): Indentation fix
src/libtmux/window.py:docstring of libtmux.window.Window.get:3: WARNING: Explicit markup ends without a blank line; unexpected unindent. src/libtmux/window.py:docstring of libtmux.window.Window.get_by_id:3: WARNING: Explicit markup ends without a blank line; unexpected unindent. src/libtmux/window.py:docstring of libtmux.window.Window.where:3: WARNING: Explicit markup ends without a blank line; unexpected unindent. src/libtmux/window.py:docstring of libtmux.window.Window.find_where:3: WARNING: Explicit markup ends without a blank line; unexpected unindent. src/libtmux/window.py:docstring of libtmux.window.Window._list_panes:3: WARNING: Explicit markup ends without a blank line; unexpected unindent.'
1 parent 26edf9e commit 4d51e53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libtmux/window.py

+6
Original file line numberDiff line numberDiff line change
@@ -633,27 +633,31 @@ def width(self) -> t.Optional[str]:
633633
def get(self, key: str, default: t.Optional[t.Any] = None) -> t.Any:
634634
"""
635635
.. deprecated:: 0.16
636+
636637
"""
637638
warnings.warn("Window.get() is deprecated", stacklevel=2)
638639
return getattr(self, key, default)
639640

640641
def __getitem__(self, key: str) -> t.Any:
641642
"""
642643
.. deprecated:: 0.16
644+
643645
"""
644646
warnings.warn(f"Item lookups, e.g. window['{key}'] is deprecated", stacklevel=2)
645647
return getattr(self, key)
646648

647649
def get_by_id(self, id: str) -> t.Optional[Pane]:
648650
"""
649651
.. deprecated:: 0.16
652+
650653
"""
651654
warnings.warn("Window.get_by_id() is deprecated", stacklevel=2)
652655
return self.panes.get(pane_id=id, default=None)
653656

654657
def where(self, kwargs: t.Dict[str, t.Any]) -> t.List[Pane]:
655658
"""
656659
.. deprecated:: 0.16
660+
657661
"""
658662
warnings.warn("Window.where() is deprecated", stacklevel=2)
659663
try:
@@ -664,13 +668,15 @@ def where(self, kwargs: t.Dict[str, t.Any]) -> t.List[Pane]:
664668
def find_where(self, kwargs: t.Dict[str, t.Any]) -> t.Optional[Pane]:
665669
"""
666670
.. deprecated:: 0.16
671+
667672
"""
668673
warnings.warn("Window.find_where() is deprecated", stacklevel=2)
669674
return self.panes.get(default=None, **kwargs)
670675

671676
def _list_panes(self) -> t.List[PaneDict]:
672677
"""
673678
.. deprecated:: 0.16
679+
674680
"""
675681
warnings.warn("Window._list_panes() is deprecated", stacklevel=2)
676682
return [pane.__dict__ for pane in self.panes]

0 commit comments

Comments
 (0)