@@ -347,7 +347,7 @@ def set_option(
347
347
self ,
348
348
option : str ,
349
349
value : t .Union [int , str ],
350
- format : t .Optional [bool ] = None ,
350
+ _format : t .Optional [bool ] = None ,
351
351
unset : t .Optional [bool ] = None ,
352
352
unset_panes : t .Optional [bool ] = None ,
353
353
prevent_overwrite : t .Optional [bool ] = None ,
@@ -386,8 +386,8 @@ def set_option(
386
386
assert isinstance (unset_panes , bool )
387
387
flags .append ("-U" )
388
388
389
- if format is not None and format :
390
- assert isinstance (format , bool )
389
+ if _format is not None and _format :
390
+ assert isinstance (_format , bool )
391
391
flags .append ("-F" )
392
392
393
393
if prevent_overwrite is not None and prevent_overwrite :
@@ -420,11 +420,18 @@ def set_option(
420
420
return self
421
421
422
422
def show_window_options (self , g : t .Optional [bool ] = False ) -> "WindowOptionDict" :
423
- """Return dict of options for window.
423
+ """Show options for tmux window. Deprecated by :meth:`Window.show_options()` .
424
424
425
- .. versionchanged:: 0.13.0
425
+ .. deprecated:: 0.26
426
+
427
+ Deprecated by :meth:`Window.show_options()`.
428
+
429
+ """
430
+ warnings .warn ("Window.show_window_options() is deprecated" , stacklevel = 2 )
431
+ return self .show_options (g = g )
426
432
427
- ``option`` removed, use show_window_option to return an individual option.
433
+ def show_options (self , g : t .Optional [bool ] = False ) -> "WindowOptionDict" :
434
+ """Return a dict of options for the window.
428
435
429
436
Parameters
430
437
----------
@@ -463,6 +470,19 @@ def show_window_option(
463
470
self ,
464
471
option : str ,
465
472
g : bool = False ,
473
+ ) -> t .Optional [t .Union [str , int ]]:
474
+ """Return option for target window. Deprecated by :meth:`Window.show_option()`.
475
+
476
+ .. deprecated:: 0.26
477
+
478
+ Deprecated by :meth:`Window.show_option()`.
479
+
480
+ """
481
+ warnings .warn ("Window.show_window_option() is deprecated" , stacklevel = 2 )
482
+ return self .show_option (option = option , g = g )
483
+
484
+ def show_option (
485
+ self , option : str , g : bool = False
466
486
) -> t .Optional [t .Union [str , int ]]:
467
487
"""Return option value for the target window.
468
488
0 commit comments