ruff/crates/ruff_linter
Charlie Marsh 8b86e8004d
Extend dict-get-with-none-default (SIM910) to non-literals (#8762)
## Summary

Ensures that we can catch cases like:

```python
ages = {"Tom": 23, "Maria": 23, "Dog": 11}
age = ages.get("Cat", None)
```

Previously, the rule was somewhat useless, as it only checked for
literal accesses.

Closes https://github.com/astral-sh/ruff/issues/8760.
2023-11-19 00:21:53 +00:00
..
resources/test Extend dict-get-with-none-default (SIM910) to non-literals (#8762) 2023-11-19 00:21:53 +00:00
src Extend dict-get-with-none-default (SIM910) to non-literals (#8762) 2023-11-19 00:21:53 +00:00
Cargo.toml Bump version to v0.1.6 (#8744) 2023-11-17 13:29:19 -05:00