fix type signature and bump for 4.1.1 (#676)

This commit is contained in:
Paul Kehrer 2023-11-27 09:01:44 -06:00 committed by GitHub
parent 8ca5d515b1
commit f7870975ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -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
-----

View File

@ -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"}
]

View File

@ -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)?;

View File

@ -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: ...