Skip to content

Use modern python syntax for types and others #1399

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

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

kbaikov
Copy link
Contributor

@kbaikov kbaikov commented Aug 6, 2025

Since the minium declared python version is 3.10
we don't need the Union and Option and many
type imports should be done from collections.abc.

so i ran fd --extension py --type f --exec pyupgrade --py310-plus
on the repo.
All changes are automated, i.e. no manual edit.

@kbaikov
Copy link
Contributor Author

kbaikov commented Aug 6, 2025

@jdavid @BenediktSeidl please take a look.

As stated in the message this is pyupgrade and ruff check fix.
No manual edit.

@kbaikov kbaikov force-pushed the mypy-fixes2 branch 3 times, most recently from 0ece131 to e8d61ae Compare August 6, 2025 12:09
Since the minium declared python version is 3.10
we don't need the Union and Option and many
type imports should be done from collections.abc.

so i ran fd --extension py --type f --exec pyupgrade --py310-plus
on the repo.
All changes are automated, i.e. no manual edit.
@jdavid jdavid merged commit 1d9d0be into libgit2:master Aug 6, 2025
8 checks passed
@kbaikov kbaikov deleted the mypy-fixes2 branch August 6, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants