From ceb74b65a75530e29ac764df71f7099776b88be0 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 1 Oct 2023 14:25:40 -0400 Subject: [PATCH] Decrease PEP 593 error to a debug warning --- crates/ruff_linter/src/checkers/ast/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff_linter/src/checkers/ast/mod.rs b/crates/ruff_linter/src/checkers/ast/mod.rs index 5e6b9db15ea2a..dbfa15f65655a 100644 --- a/crates/ruff_linter/src/checkers/ast/mod.rs +++ b/crates/ruff_linter/src/checkers/ast/mod.rs @@ -29,7 +29,7 @@ use std::path::Path; use itertools::Itertools; -use log::error; +use log::debug; use ruff_python_ast::{ self as ast, Arguments, Comprehension, Constant, ElifElseClause, ExceptHandler, Expr, ExprContext, Keyword, MatchCase, Parameter, ParameterWithDefault, Parameters, Pattern, Stmt, @@ -1176,7 +1176,7 @@ where self.visit_expr_context(ctx); } } else { - error!("Found non-Expr::Tuple argument to PEP 593 Annotation."); + debug!("Found non-Expr::Tuple argument to PEP 593 Annotation."); } } None => {