ruff
f3d2d77d - [`flake8-type-checking`] Add a fix for `runtime-string-union` (`TC010`) (#15635)

Commit
11 hours ago
[`flake8-type-checking`] Add a fix for `runtime-string-union` (`TC010`) (#15635) This is an alternative implementation for #15222 so we can compare the two approaches. /cc @MichaReiser ## Summary This adds a fix for `TC010` which removes quotes whenever they can be removed safely and otherwise extends the quotes to the entire union. This also disables `TC010` explicitly in stubs, rather than rely on the execution context, which can still be runtime in stub files for a small set of type expressions. ## Test Plan `cargo nextest run` --------- Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Author
Parents
Loading