Improve type hints in knx tests (#123787)

This commit is contained in:
epenet 2024-08-13 13:32:44 +02:00 committed by GitHub
parent b3d1d79a49
commit 2c4b7c2577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,7 @@
"""Test KNX selectors."""
from typing import Any
import pytest
import voluptuous as vol
@ -111,7 +113,11 @@ INVALID = "invalid"
),
],
)
def test_ga_selector(selector_config, data, expected):
def test_ga_selector(
selector_config: dict[str, Any],
data: dict[str, Any],
expected: str | dict[str, Any],
) -> None:
"""Test GASelector."""
selector = GASelector(**selector_config)
if expected == INVALID: