Skip to content

Commit

Permalink
Equivalent fixes to ruff_python_stdlib also
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Apr 15, 2024
1 parent 08c5e30 commit 3f4729b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ruff_python_stdlib/src/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pub fn is_standard_library_generic(qualified_name: &[&str]) -> bool {
matches!(
qualified_name,
["", "dict" | "frozenset" | "list" | "set" | "tuple" | "type"]
["" | "builtins", "dict" | "frozenset" | "list" | "set" | "tuple" | "type"]
| [
"collections" | "typing" | "typing_extensions",
"ChainMap" | "Counter"
Expand Down Expand Up @@ -247,7 +247,7 @@ pub fn is_immutable_non_generic_type(qualified_name: &[&str]) -> bool {
pub fn is_immutable_generic_type(qualified_name: &[&str]) -> bool {
matches!(
qualified_name,
["", "tuple"]
["" | "builtins", "tuple"]
| [
"collections",
"abc",
Expand Down Expand Up @@ -285,7 +285,7 @@ pub fn is_immutable_generic_type(qualified_name: &[&str]) -> bool {
pub fn is_mutable_return_type(qualified_name: &[&str]) -> bool {
matches!(
qualified_name,
["", "dict" | "list" | "set"]
["" | "builtins", "dict" | "list" | "set"]
| [
"collections",
"Counter" | "OrderedDict" | "defaultdict" | "deque"
Expand Down

0 comments on commit 3f4729b

Please sign in to comment.