Skip to content

Commit a670f24

Browse files
author
Tony Crisci
committed
run formatter
1 parent 5fc4109 commit a670f24

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

examples/floating-mode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# https://old.reddit.com/r/i3wm/comments/85ctji/when_windows_are_floating_by_default_how_do_i/
1313

1414
from i3ipc import Connection
15+
1516
i3 = Connection()
1617

1718

i3ipc/aio/connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@ async def subscribe(self, events: Union[List[Event], List[str]], force: bool = F
528528

529529
await self._loop.sock_sendall(self._sub_socket, _pack(MessageType.SUBSCRIBE, payload))
530530

531-
def on(self, event: Union[Event, str], handler: Callable[['Connection', IpcBaseEvent], None] = None):
531+
def on(self,
532+
event: Union[Event, str],
533+
handler: Callable[['Connection', IpcBaseEvent], None] = None):
532534
def on_wrapped(handler):
533535
self._on(event, handler)
534536
return handler

i3ipc/con.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def find_classed(self, pattern: str) -> List['Con']:
367367
or app_id that matches the given regex pattern.
368368
369369
:returns: A list of containers that have a window class, or
370-
app_id that matches the pattern.
370+
app_id that matches the pattern.
371371
:rtype: list(:class:`Con`)
372372
"""
373373
x11_windows = [c for c in self if c.window_class and re.search(pattern, c.window_class)]

i3ipc/connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,9 @@ def off(self, handler: Callable[['Connection', IpcBaseEvent], None]):
406406
"""
407407
self._pubsub.unsubscribe(handler)
408408

409-
def on(self, event: Union[Event, str], handler: Callable[['Connection', IpcBaseEvent], None] = None):
409+
def on(self,
410+
event: Union[Event, str],
411+
handler: Callable[['Connection', IpcBaseEvent], None] = None):
410412
def on_wrapped(handler):
411413
self._on(event, handler)
412414
return handler

i3ipc/replies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def __init__(self, data):
1313

1414
@classmethod
1515
def _parse_list(cls, data):
16-
#print(data, file=sys.stderr)
1716
return [cls(d) for d in data]
1817

1918

0 commit comments

Comments
 (0)