Update typing 12 (#48073)

This commit is contained in:
Marc Mueller 2021-03-18 14:31:38 +01:00 committed by GitHub
parent 6cd6ad6904
commit a3cd1854f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 399 additions and 312 deletions

View file

@ -1,5 +1,7 @@
"""Support for ReCollect Waste sensors."""
from typing import Callable, List
from __future__ import annotations
from typing import Callable
from aiorecollect.client import PickupType
import voluptuous as vol
@ -36,8 +38,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
@callback
def async_get_pickup_type_names(
entry: ConfigEntry, pickup_types: List[PickupType]
) -> List[str]:
entry: ConfigEntry, pickup_types: list[PickupType]
) -> list[str]:
"""Return proper pickup type names from their associated objects."""
return [
t.friendly_name