Avoid some implicit generic Anys (#54577)

This commit is contained in:
Ville Skyttä
2021-08-17 00:12:06 +03:00
committed by GitHub
parent b72ed68d61
commit 848c0be58a
14 changed files with 69 additions and 29 deletions

View File

@@ -8,6 +8,8 @@ from homeassistant.core import HomeAssistant, callback
from . import template
# mypy: disallow-any-generics
class ScriptVariables:
"""Class to hold and render script variables."""
@@ -65,6 +67,6 @@ class ScriptVariables:
return rendered_variables
def as_dict(self) -> dict:
def as_dict(self) -> dict[str, Any]:
"""Return dict version of this class."""
return self.variables