We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e1b289 commit e6d0c4aCopy full SHA for e6d0c4a
1 file changed
crates/ruff_python_stdlib/src/typing.rs
@@ -299,8 +299,10 @@ pub fn is_mutable_return_type(qualified_name: &[&str]) -> bool {
299
pub fn is_immutable_return_type(qualified_name: &[&str]) -> bool {
300
matches!(
301
qualified_name,
302
- ["datetime", "date" | "datetime" | "timedelta"]
303
- | ["decimal", "Decimal"]
+ [
+ "datetime",
304
+ "date" | "datetime" | "time" | "timedelta" | "timezone" | "tzinfo"
305
+ ] | ["decimal", "Decimal"]
306
| ["fractions", "Fraction"]
307
| ["operator", "attrgetter" | "itemgetter" | "methodcaller"]
308
| ["pathlib", "Path"]
0 commit comments