ruff/crates/ruff_python_semantic
Simon Brugman 48ec3a8add
[refurb] Guard hashlib imports and mark hashlib-digest-hex fix as safe (FURB181) (#14694)
## Summary

- Check if `hashlib` and `crypt` imports have been seen for `FURB181`
and `S324`
- Mark the fix for `FURB181` as safe: I think it was accidentally marked
as unsafe in the first place. The rule does not support user-defined
classes as the "fix safety" section suggests.
- Removed `hashlib._Hash`, as it's not part of the `hashlib` module.

<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan

Updated the test snapshots
2024-12-01 20:24:49 -05:00
..
src [refurb] Guard hashlib imports and mark hashlib-digest-hex fix as safe (FURB181) (#14694) 2024-12-01 20:24:49 -05:00
Cargo.toml Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00