Skip to content

Commit 959d351

Browse files
committed
Revert "!squash more window show_option"
This reverts commit 9edf6ec.
1 parent efa3add commit 959d351

File tree

1 file changed

+1
-46
lines changed

1 file changed

+1
-46
lines changed

src/libtmux/window.py

+1-46
Original file line numberDiff line numberDiff line change
@@ -441,47 +441,11 @@ def show_window_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict"
441441
option_type=OptionType.Window,
442442
)
443443

444-
@t.overload
445-
def show_options(
446-
self,
447-
g: t.Optional[bool],
448-
option_type: t.Optional[OptionType],
449-
include_hooks: t.Optional[bool],
450-
include_parents: t.Optional[bool],
451-
values_only: t.Literal[True],
452-
) -> t.List[str]:
453-
...
454-
455-
@t.overload
456-
def show_options(
457-
self,
458-
g: t.Optional[bool],
459-
option_type: t.Optional[OptionType],
460-
include_hooks: t.Optional[bool],
461-
include_parents: t.Optional[bool],
462-
values_only: t.Literal[None] = None,
463-
) -> "WindowOptionDict":
464-
...
465-
466-
@t.overload
467-
def show_options(
468-
self,
469-
g: t.Optional[bool] = None,
470-
option_type: t.Optional[OptionType] = None,
471-
include_hooks: t.Optional[bool] = None,
472-
include_parents: t.Optional[bool] = None,
473-
values_only: t.Literal[False] = False,
474-
) -> "WindowOptionDict":
475-
...
476-
477444
def show_options(
478445
self,
479446
g: t.Optional[bool] = False,
480447
option_type: t.Optional[OptionType] = None,
481-
include_hooks: t.Optional[bool] = None,
482-
include_parents: t.Optional[bool] = None,
483-
values_only: t.Optional[bool] = False,
484-
) -> t.Union["WindowOptionDict", t.List[str]]:
448+
) -> "WindowOptionDict":
485449
"""Return a dict of options for the window.
486450
487451
Parameters
@@ -498,15 +462,6 @@ def show_options(
498462
assert option_type in OPTION_TYPE_FLAG_MAP
499463
tmux_args += (OPTION_TYPE_FLAG_MAP[option_type],)
500464

501-
if include_parents is not None and include_parents:
502-
tmux_args += ("-A",)
503-
504-
if include_hooks is not None and include_hooks:
505-
tmux_args += ("-H",)
506-
507-
if values_only is not None and values_only:
508-
tmux_args += ("-v",)
509-
510465
cmd = self.cmd("show-options", *tmux_args)
511466

512467
output = cmd.stdout

0 commit comments

Comments
 (0)