Use PEP 695 type alias for ConfigEntry (#2179)

This commit is contained in:
Marc Mueller 2024-05-21 07:39:45 +02:00 committed by GitHub
parent 1f235a8d53
commit 8e4a632d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ An example could look like this:
# <integration>/__init__.py
# The type alias needs to be suffixed with 'ConfigEntry'
MyConfigEntry = ConfigEntry["MyData"]
type MyConfigEntry = ConfigEntry[MyData]
@dataclass
class MyData: