mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Add type hints for FixtureRequest in tests (#118779)
This commit is contained in:
@@ -131,7 +131,7 @@ def mock_get_appliances() -> Generator[None, Any, None]:
|
||||
|
||||
|
||||
@pytest.fixture(name="appliance")
|
||||
def mock_appliance(request) -> Mock:
|
||||
def mock_appliance(request: pytest.FixtureRequest) -> MagicMock:
|
||||
"""Fixture to mock Appliance."""
|
||||
app = "Washer"
|
||||
if hasattr(request, "param") and request.param:
|
||||
|
||||
Reference in New Issue
Block a user