Skip to content

Commit

Permalink
Add time, timezone, and tzinfo as immutable function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Wouda committed Aug 26, 2024
1 parent f8f2e2a commit b1171e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_python_stdlib/src/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ pub fn is_mutable_return_type(qualified_name: &[&str]) -> bool {
pub fn is_immutable_return_type(qualified_name: &[&str]) -> bool {
matches!(
qualified_name,
["datetime", "date" | "datetime" | "timedelta"]
["datetime", "date" | "datetime" | "time" | "timedelta" | "timezone" | "tzinfo"]
| ["decimal", "Decimal"]
| ["fractions", "Fraction"]
| ["operator", "attrgetter" | "itemgetter" | "methodcaller"]
Expand Down

0 comments on commit b1171e1

Please sign in to comment.