ruff/crates/ruff_linter
Tom Kuson 9675e1867a
Allow trailing ellipsis in typing.TYPE_CHECKING (#10413)
## Summary

Trailing ellipses in objects defined in `typing.TYPE_CHECKING` might be
meaningful (it might be declaring a stub). Thus, we should skip the
`unnecessary-placeholder` (`PIE970`) rule in such contexts.

Closes #10358.

## Test Plan

`cargo nextest run`
2024-03-15 03:55:57 +00:00
..
resources Allow trailing ellipsis in typing.TYPE_CHECKING (#10413) 2024-03-15 03:55:57 +00:00
src Allow trailing ellipsis in typing.TYPE_CHECKING (#10413) 2024-03-15 03:55:57 +00:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.3.2 (#10304) 2024-03-09 00:24:22 +00:00