Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Dec 12, 2023
1 parent a93a86d commit a90e69a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lilya/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
# check if the Python version supports the parameter
# using usedforsecurity=False to avoid an exception on FIPS systems
# that reject usedforsecurity=True
hashlib.md5(b"data", usedforsecurity=False)
hashlib.md5(b"data", usedforsecurity=False) # type: ignore[call-arg]

def md5_hexdigest(data: bytes, *, usedforsecurity: bool = True) -> str: # pragma: no cover
return hashlib.md5(data, usedforsecurity=usedforsecurity).hexdigest()
return hashlib.md5( # type: ignore[call-arg]
data, usedforsecurity=usedforsecurity
).hexdigest()

except TypeError: # pragma: no cover

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ warn_redundant_casts = true
no_implicit_optional = false
strict_equality = false
strict_optional = false

exclude = ["lilya/compat.py"]

[tool.ruff]
select = [
Expand Down

0 comments on commit a90e69a

Please sign in to comment.