mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Adjust type hints for unnecessary returns in tests (#121657)
This commit is contained in:
@@ -67,13 +67,15 @@ def warning_caplog(
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def subscriber_side_effect() -> None:
|
||||
def subscriber_side_effect() -> Any | None:
|
||||
"""Fixture to inject failures into FakeSubscriber start."""
|
||||
return None
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def failing_subscriber(subscriber_side_effect: Any) -> YieldFixture[FakeSubscriber]:
|
||||
def failing_subscriber(
|
||||
subscriber_side_effect: Any | None,
|
||||
) -> YieldFixture[FakeSubscriber]:
|
||||
"""Fixture overriding default subscriber behavior to allow failure injection."""
|
||||
subscriber = FakeSubscriber()
|
||||
with patch(
|
||||
|
||||
Reference in New Issue
Block a user