From 5841c1c64ef79a473eebd9e9af7aa4126ae94053 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 10:42:47 +0000 Subject: [PATCH 1/2] Bump mypy from 1.6.1 to 1.7.0 Bumps [mypy](https://github.com/python/mypy) from 1.6.1 to 1.7.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.6.1...v1.7.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements/testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/testing.txt b/requirements/testing.txt index 383273de9..09c7b2186 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -10,4 +10,4 @@ ruff==0.1.4 setuptools==68.2.2 tox==4.11.3 tox-gh-actions==3.1.3 -mypy==1.6.1 +mypy==1.7.0 From 5e505dd42017304319fa57033db95adfcd191c50 Mon Sep 17 00:00:00 2001 From: farmio Date: Mon, 13 Nov 2023 15:13:06 +0100 Subject: [PATCH 2/2] Update keyring.py --- xknx/secure/keyring.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xknx/secure/keyring.py b/xknx/secure/keyring.py index 0f51b630c..2804e6648 100644 --- a/xknx/secure/keyring.py +++ b/xknx/secure/keyring.py @@ -495,7 +495,7 @@ def startElement(self, name: str, attrs: AttributesImpl) -> None: self.output.append(1) self.append_string(name) - for attr_name, attr_value in sorted(attrs.items()): # type: ignore[no-untyped-call] + for attr_name, attr_value in sorted(attrs.items()): if attr_name not in self._attribute_blacklist: self.append_string(attr_name) self.append_string(attr_value) @@ -524,7 +524,7 @@ def verify_keyring_signature(path: str | os.PathLike[Any], password: str) -> boo with open(path, encoding="utf-8") as file: parser = xml.sax.make_parser() - parser.setContentHandler(handler) # type: ignore[no-untyped-call] + parser.setContentHandler(handler) parser.parse(file) # type: ignore[no-untyped-call] return sha256_hash(handler.output)[:16] == signature