Skip to content

Commit 058be2c

Browse files
committed
Fixing lint errors.
1 parent b9afaf0 commit 058be2c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

redis/maintenance_events.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class MaintenanceState(enum.Enum):
1515
FAILING_OVER = "failing_over"
1616

1717

18-
1918
if TYPE_CHECKING:
2019
from redis.connection import (
2120
BlockingConnectionPool,
@@ -588,7 +587,6 @@ def handle_maintenance_start_event(self, maintenance_state: MaintenanceState):
588587
# extend the timeout for all created connections
589588
self.connection.update_current_socket_timeout(self.config.relax_timeout)
590589

591-
592590
def handle_maintenance_completed_event(self):
593591
# Only reset timeouts if state is not MOVING and relax timeouts are enabled
594592
if (

tests/test_maintenance_events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ def test_equality_and_hash(self):
283283
assert hash(event1) == hash(event2)
284284
assert hash(event1) != hash(event3)
285285

286+
286287
class TestNodeFailingOverEvent:
287288
"""Test the NodeFailingOverEvent class."""
288289

@@ -360,6 +361,7 @@ def test_equality_and_hash(self):
360361
assert hash(event1) == hash(event2)
361362
assert hash(event1) != hash(event3)
362363

364+
363365
class TestMaintenanceEventsConfig:
364366
"""Test the MaintenanceEventsConfig class."""
365367

@@ -562,7 +564,6 @@ def test_handle_event_migrating(self):
562564
self.handler.handle_event(event)
563565
mock_handle.assert_called_once_with(MaintenanceState.MIGRATING)
564566

565-
566567
def test_handle_event_migrated(self):
567568
"""Test handling of NodeMigratedEvent."""
568569
event = NodeMigratedEvent(id=1)

0 commit comments

Comments
 (0)