We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aacbafd commit 324ae92Copy full SHA for 324ae92
1 file changed
crates/ruff_linter/src/rules/flake8_builtins/rules/stdlib_module_shadowing.rs
@@ -93,6 +93,11 @@ pub(crate) fn stdlib_module_shadowing(
93
return None;
94
}
95
96
+ // not allowed generally, but check for a parent in non-strict mode
97
+ if !settings.flake8_builtins.builtins_strict_checking && components.next().is_some() {
98
+ return None;
99
+ }
100
+
101
Some(Diagnostic::new(
102
StdlibModuleShadowing {
103
name: module_name.to_string(),
0 commit comments