Skip to content

Commit

Permalink
fix type signature and bump for 4.1.1 (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk authored Nov 27, 2023
1 parent 8ca5d51 commit f787097
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ While bcrypt remains an acceptable choice for password storage, depending on you
Changelog
=========

4.1.1
-----

* Fixed the type signature on the ``kdf`` method.

4.1.0
-----

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "bcrypt"
# When updating this, also update lib.rs
version = "4.1.0"
version = "4.1.1"
authors = [
{name = "The Python Cryptographic Authority developers", email = "cryptography-dev@python.org"}
]
Expand Down
2 changes: 1 addition & 1 deletion src/_bcrypt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn _bcrypt(_py: pyo3::Python<'_>, m: &pyo3::types::PyModule) -> pyo3::PyResult<(
m.add("__uri__", "https://github.com/pyca/bcrypt/")?;

// When updating this, also update pyproject.toml
m.add("__version__", "4.1.0")?;
m.add("__version__", "4.1.1")?;

let author = "The Python Cryptographic Authority developers";
m.add("__author__", author)?;
Expand Down
2 changes: 1 addition & 1 deletion src/bcrypt/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def checkpw(password: bytes, hashed_password: bytes) -> bool: ...
def kdf(
password: bytes,
salt: bytes,
rounds: int,
desired_key_bytes: int,
rounds: int,
ignore_few_rounds: bool = False,
) -> bytes: ...

0 comments on commit f787097

Please sign in to comment.