FICHA · MANJARO

pyupgrade

A tool to automatically upgrade syntax for newer versions of the language

  • development-tool
  • Dev
  • CLI
  • Launchable
  • Runs in terminal
official+codex · reviewed · May 28, 2026 description in en

Description

Updates Python source code to use syntax supported by newer Python versions. It helps maintainers modernize projects by rewriting old patterns such as legacy string formatting, outdated imports, or compatibility code.

Run it from the terminal on source files. Because it rewrites code, review diffs and run tests before committing changes, especially in projects that still support older Python versions.

How to run

pyupgrade

Commands: pyupgrade

Permissions

Permissions not analysed for this source yet.