Skip to content

Commit c3e03d0

Browse files
committed
chore(common): pydocstyle manual fixes
1 parent ddeb5f3 commit c3e03d0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/libtmux/common.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# flake8: NOQA: W605
2-
"""Helper methods and mixins.
2+
"""Helper methods and mixins for libtmux.
33
44
libtmux.common
55
~~~~~~~~~~~~~~
@@ -36,10 +36,7 @@
3636

3737

3838
class EnvironmentMixin:
39-
"""
40-
Mixin class for managing session and server level environment variables in
41-
tmux.
42-
"""
39+
"""Mixin for manager session and server level environment variables in tmux."""
4340

4441
_add_option = None
4542

@@ -431,8 +428,7 @@ def has_minimum_version(raises: bool = True) -> bool:
431428

432429

433430
def session_check_name(session_name: t.Optional[str]) -> None:
434-
"""
435-
Raises exception session name invalid, modeled after tmux function.
431+
"""Raise exception session name invalid, modeled after tmux function.
436432
437433
tmux(1) session names may not be empty, or include periods or colons.
438434
These delimiters are reserved for noting session, window and pane.
@@ -456,7 +452,7 @@ def session_check_name(session_name: t.Optional[str]) -> None:
456452

457453

458454
def handle_option_error(error: str) -> t.Type[exc.OptionError]:
459-
"""Raises exception if error in option command found.
455+
"""Raise exception if error in option command found.
460456
461457
In tmux 3.0, show-option and show-window-option return invalid option instead of
462458
unknown option. See https://github.com/tmux/tmux/blob/3.0/cmd-show-options.c.

0 commit comments

Comments
 (0)