Shed

Latest version: v2024.10.1

Safety actively analyzes 682416 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 11

0.10.6

- `--refactor` now splits `assert a and b [and c and ...]` into a separate
assertion for each clause, so that it's always clear which (if any) failed.
- `--refactor` removes redundant calls to `len()` in boolean contexts.

0.10.5

- Preserve trailing commas in literals in `--refactor` mode
- `--refactor` mode now flattens `Optional[Union[...]]` to `Union[..., None]`
- Don't convert `==` to `is` in subscripts, to save e.g. `df[df.flag == True]`

0.10.4

- Updated for compatibility with new `pyupgrade==3.0.0`

0.10.3

- Fix a crash when used with Python 3.10 pattern matching
- Fix a bug where the minimum-version argument was sometimes ignored
- Clarified some error messages for easier debugging

0.10.2

- Require latest version of Black to detect that `f"{x=}"` requires Python 3.8+
(and remove previous workaround)
- Fixed detection of Hypothesis codemods in `--refactor` mode

0.10.1

- Handle non-locale-encoded files, such as UTF-8 on Windows (42)
- Preserve comments on the last element of `Literal` types with `--refactor`

Page 3 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.