Skip to content

Commit

Permalink
Remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Nov 9, 2023
1 parent bbc3d3b commit 7a2c13d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ruff_python_semantic/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use ruff_python_ast::call_path::{collect_call_path, from_unqualified_name, CallP
use ruff_python_ast::helpers::from_relative_import;
use ruff_python_ast::{self as ast, Expr, Operator, Stmt};
use ruff_python_stdlib::path::is_python_stub_file;
use ruff_python_stdlib::typing::is_typing_extension;
use ruff_text_size::{Ranged, TextRange, TextSize};

use crate::binding::{
Expand Down Expand Up @@ -177,7 +176,7 @@ impl<'a> SemanticModel<'a> {
pub fn match_typing_call_path(&self, call_path: &CallPath, target: &str) -> bool {
if matches!(
call_path.as_slice(),
["typing" | "_typeshed" | "typing_extensions", target]
["typing" | "_typeshed" | "typing_extensions", _target]
) {
return true;
}
Expand Down

0 comments on commit 7a2c13d

Please sign in to comment.