Skip to content

Commit d32e925

Browse files
committed
linter
1 parent 88db66d commit d32e925

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎bubus/logging.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def log_event_tree(
3939
is_last: bool = True,
4040
child_events_by_parent: dict[str | None, list['BaseEvent[Any]']] | None = None,
4141
) -> str:
42-
4342
from bubus.models import logger
4443

4544
"""Print this event and its results with proper tree formatting"""
@@ -57,7 +56,7 @@ def log_event_tree(
5756
timing_str += ']'
5857

5958
lines: list[str] = []
60-
59+
6160
event_line = f'{indent}{connector}{status_icon} {event.event_type}#{event.event_id[-4:]} {timing_str}'
6261
logger.warning(event_line)
6362
lines.append(event_line)
@@ -155,7 +154,7 @@ def log_eventresult_tree(
155154
new_indent = indent + extension
156155

157156
# Print child events dispatched by this handler
158-
157+
159158
if result.event_children:
160159
for i, child in enumerate(result.event_children):
161160
is_last_child = i == len(result.event_children) - 1

‎tests/test_log_history_tree.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"""Test the EventBus.log_tree() method"""
22

3-
import sys
43
from datetime import UTC, datetime
5-
from io import StringIO
64
from typing import Any
75

86
from bubus import BaseEvent, EventBus, EventResult

0 commit comments

Comments
 (0)