Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pyupgrade to upgrade all syntax to python 3 #524

Open
parthea opened this issue Sep 1, 2023 · 1 comment
Open

Use pyupgrade to upgrade all syntax to python 3 #524

parthea opened this issue Sep 1, 2023 · 1 comment
Labels
type: cleanup An internal cleanup or hygiene concern.

Comments

@parthea
Copy link
Collaborator

parthea commented Sep 1, 2023

See comment https://github.com/googleapis/python-api-core/pull/453/files#r980307782 from #453, where @asottile-sentry recommended that we run pyupgrade to upgrade all syntax to python 3.

it might be a good idea to run https://github.com/asottile/pyupgrade on this codebase to remove the remaining python 2isms

We should do this on all python repositories in the googleapis org.

@parthea parthea added the type: cleanup An internal cleanup or hygiene concern. label Sep 1, 2023
@akx
Copy link

akx commented Nov 13, 2023

You can also run ruff --select=UP --fix to similar effect (but faster). See https://docs.astral.sh/ruff/rules/#pyupgrade-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

2 participants