Skip to content

Commit 74a8d7b

Browse files
committed
return windows
1 parent 1cdf481 commit 74a8d7b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugin/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
_T_Number = TypeVar("_T_Number", bound=Union[int, float])
2424

2525

26-
def all_windows(
27-
window: sublime.Window | None = None,
28-
) -> Generator[sublime.Window, None, None]:
29-
yield from [window] if window else sublime.windows()
26+
def all_windows() -> list[sublime.Window]:
27+
return sublime.windows()
3028

3129

3230
def all_views(

0 commit comments

Comments
 (0)