redundant-open-modes (UP015)
Derived from the pyupgrade linter.
Fix is always available.
What it does
Checks for redundant open
mode arguments.
Why is this bad?
Redundant open
mode arguments are unnecessary and should be removed to
avoid confusion.
Example
Use instead: