Upgrade syntax to comply with 3.10
Since now the minimum version is 3.10, the syntax shall be upgraded to reduce the cost of maintainability and readability.
The provided scripts/pyupgrade.sh
can be executed regularly to update all python files.
pyupgrade
can also be separately installed and used as a commit hook.
Edited by Theodore Chang