bcrypt/src
crazygolem b00ecf8dcf
Fix incorrect python signature of gensalt (#1031)
It seems that pyo3 does not support specifying a python `bytes` as default
value: the `signature` attribute accepts rust literals but interprets them as
python values; `b"2b"` is interpreted as a rust `[u8, 2]` and not a python
`bytes` object.

To work around this, the `prefix` argument is handled in code, and the python
signature is overridden via pyo3's `text_signature` attribute, which makes the
desired signature visible to python tooling (such as `inspect.signature`).

Fixes #1030
2025-06-04 15:50:42 -07:00
..
_bcrypt Fix incorrect python signature of gensalt (#1031) 2025-06-04 15:50:42 -07:00
bcrypt Fix new ruff warning (#923) 2024-11-24 07:55:33 -08:00