mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 15:44:22 -05:00
[B006] Add bytes to immutable types (#5776)
## Summary `B006` should allow using `bytes(...)` as an argument defaule value. ## Test Plan A new test case --------- Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f029f8b784
commit
daa4b72d5f
@@ -364,7 +364,7 @@ pub fn is_immutable_return_type(call_path: &[&str]) -> bool {
|
||||
| ["re", "compile"]
|
||||
| [
|
||||
"",
|
||||
"bool" | "complex" | "float" | "frozenset" | "int" | "str" | "tuple"
|
||||
"bool" | "bytes" | "complex" | "float" | "frozenset" | "int" | "str" | "tuple"
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user