mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-28 15:33:50 +00: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:
parent
f029f8b784
commit
daa4b72d5f
4 changed files with 44 additions and 41 deletions
|
@ -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"
|
||||
]
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue