Skip to content

Commit ec1be60

Browse files
authored
Remove leftover constant tuple reference (#8062)
This PR removes the leftover reference to the tuple variant in `Constant`.
1 parent a327b4d commit ec1be60

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

crates/ruff_linter/src/rules/pylint/settings.rs

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pub enum ConstantType {
1515
Float,
1616
Int,
1717
Str,
18-
Tuple,
1918
}
2019

2120
impl TryFrom<&Constant> for ConstantType {

crates/ruff_python_ast/src/comparable.rs

-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ pub enum ComparableConstant<'a> {
333333
Str { value: &'a str, unicode: bool },
334334
Bytes(&'a [u8]),
335335
Int(&'a ast::Int),
336-
Tuple(Vec<ComparableConstant<'a>>),
337336
Float(u64),
338337
Complex { real: u64, imag: u64 },
339338
Ellipsis,

crates/ruff_workspace/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ pub struct PylintOptions {
23922392
/// Constant types to ignore when used as "magic values" (see: `PLR2004`).
23932393
#[option(
23942394
default = r#"["str", "bytes"]"#,
2395-
value_type = r#"list["str" | "bytes" | "complex" | "float" | "int" | "tuple"]"#,
2395+
value_type = r#"list["str" | "bytes" | "complex" | "float" | "int"]"#,
23962396
example = r#"
23972397
allow-magic-value-types = ["int"]
23982398
"#

ruff.schema.json

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)