---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
---
UP015 [*] Unnecessary mode argument
 --> UP015_1.py:3:17
  |
1 | # Not a valid type annotation but this test shouldn't result in a panic.
2 | # Refer: https://github.com/astral-sh/ruff/issues/11736
3 | x: 'open("foo", "r")'
  |                 ^^^
  |
help: Remove mode argument
  |
2 | # Refer: https://github.com/astral-sh/ruff/issues/11736
  - x: 'open("foo", "r")'
3 + x: 'open("foo")'
4 |
  |
