mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
New typing attempt
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user