mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
Disallow unreachable_pub
(#4314)
This commit is contained in:
parent
97802e7466
commit
c10a4535b9
444 changed files with 1376 additions and 1106 deletions
|
@ -191,7 +191,7 @@ impl<'a> Visitor<'a> for ParenthesesNormalizer<'_> {
|
|||
///
|
||||
/// TODO(charlie): It's weird that we have both `TriviaKind::Parentheses` (which aren't used
|
||||
/// during formatting) and `Parenthesize` (which are used during formatting).
|
||||
pub fn normalize_parentheses(python_cst: &mut [Stmt], locator: &Locator) {
|
||||
pub(crate) fn normalize_parentheses(python_cst: &mut [Stmt], locator: &Locator) {
|
||||
let mut normalizer = ParenthesesNormalizer { locator };
|
||||
for stmt in python_cst {
|
||||
normalizer.visit_stmt(stmt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue