Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump mypy from 1.6.1 to 1.7.0 #1356

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4
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