New typing attempt

pull/65170/head
Aaron Bach 2022-01-28 22:46:03 -07:00
parent 67525c62a2
commit e26e4aae69
1 changed files with 1 additions and 1 deletions
homeassistant/components/diagnostics

View File

@ -12,7 +12,7 @@ T = TypeVar("T")
@callback
def async_redact_data(data: T, to_redact: Iterable[Any]) -> T:
def async_redact_data(data: type[T], to_redact: Iterable[Any]) -> type[T]:
"""Redact sensitive data in a dict."""
if not isinstance(data, (Mapping, list)):
return data