From 19acbf0d2a39a8afb52c02fd94821dd935aec54b Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 21 Dec 2022 19:15:55 +0100 Subject: [PATCH] Update types packages (#84381) --- homeassistant/util/yaml/loader.py | 2 +- requirements_test.txt | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/homeassistant/util/yaml/loader.py b/homeassistant/util/yaml/loader.py index 62d754329c4..ad5d1f6fca9 100644 --- a/homeassistant/util/yaml/loader.py +++ b/homeassistant/util/yaml/loader.py @@ -142,7 +142,7 @@ class SafeLineLoader(yaml.SafeLoader): def get_stream_name(self) -> str: """Get the name of the stream.""" - return self.stream.name or "" + return getattr(self.stream, "name", "") LoaderType = Union[SafeLineLoader, SafeLoader] diff --git a/requirements_test.txt b/requirements_test.txt index 179a98f96f1..60569e9accb 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -33,19 +33,17 @@ stdlib-list==0.7.0 tomli==2.0.1;python_version<"3.11" tqdm==4.64.0 types-atomicwrites==1.4.1 -types-croniter==1.0.0 +types-croniter==1.0.6 types-backports==0.1.3 -types-certifi==0.1.4 types-chardet==0.1.5 -types-decorator==0.1.7 -types-enum34==0.1.8 -types-ipaddress==0.1.5 +types-decorator==5.1.1 +types-enum34==1.1.8 +types-ipaddress==1.0.8 types-paho-mqtt==1.6.0.1 types-pkg-resources==0.1.3 -types-python-dateutil==2.8.19.2 +types-python-dateutil==2.8.19.5 types-python-slugify==0.1.2 -types-pytz==2021.1.2 -types-PyYAML==5.4.6 -types-requests==2.28.0 -types-toml==0.1.5 -types-ujson==0.1.1 +types-pytz==2022.7.0.0 +types-PyYAML==6.0.12.2 +types-requests==2.28.11.6 +types-toml==0.10.8.1