Skip to content

Commit

Permalink
Bump mypy from 1.6.1 to 1.7.0 (#1356)
Browse files Browse the repository at this point in the history
* 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](python/mypy@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] <[email protected]>

* Update keyring.py

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: farmio <[email protected]>
  • Loading branch information
dependabot[bot] and farmio authored Nov 13, 2023
1 parent 913dcc5 commit 198d134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ ruff==0.1.5
setuptools==68.2.2
tox==4.11.3
tox-gh-actions==3.1.3
mypy==1.6.1
mypy==1.7.0
4 changes: 2 additions & 2 deletions xknx/secure/keyring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 198d134

Please sign in to comment.