File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,22 @@ def set_window_option(
331
331
self ,
332
332
option : str ,
333
333
value : t .Union [int , str ],
334
+ ) -> "Window" :
335
+ """Set option for tmux window. Deprecated by :meth:`Window.set_option()`.
336
+
337
+ .. deprecated:: 0.26
338
+
339
+ Deprecated by :meth:`Window.set_option()`.
340
+
341
+ """
342
+ warnings .warn ("Window.set_window_option() is deprecated" , stacklevel = 2 )
343
+
344
+ return self .set_option (option = option , value = value )
345
+
346
+ def set_option (
347
+ self ,
348
+ option : str ,
349
+ value : t .Union [int , str ],
334
350
format : t .Optional [bool ] = None ,
335
351
unset : t .Optional [bool ] = None ,
336
352
unset_panes : t .Optional [bool ] = None ,
@@ -355,7 +371,7 @@ def set_window_option(
355
371
:exc:`exc.OptionError`, :exc:`exc.UnknownOption`,
356
372
:exc:`exc.InvalidOption`, :exc:`exc.AmbiguousOption`
357
373
"""
358
- flags : list [str ] = []
374
+ flags : t . List [str ] = []
359
375
if isinstance (value , bool ) and value :
360
376
value = "on"
361
377
elif isinstance (value , bool ) and not value :
You can’t perform that action at this time.
0 commit comments