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

ANN204 (missing return type for special methods) autofixes #4736

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Nov 6, 2024

Summary of changes

Works towards step 6.2 of #2345 (comment)
This will reduce changes from adding return types from typeshed

I commented out ignore-fully-untyped in ruff.toml then ran ruff check --fix --unsafe-fixes --extend-exclude=setuptools/tests --select=ANN204.
Then I removed 3 added return types that were revealing hidden mypy issues to keep the changes here completely automated.

Pull Request Checklist

  • Changes have tests (this cuases more code to be statically checked by mypy)
  • News fragment added in newsfragments/. (no public facing changes)
    (See documentation for details)

@Avasam Avasam mentioned this pull request Nov 10, 2024
2 tasks
@abravalheri abravalheri merged commit b73e99c into pypa:main Nov 11, 2024
24 checks passed
@abravalheri
Copy link
Contributor

Thank you!

@Avasam Avasam deleted the ANN204-autofixes branch November 11, 2024 16:29
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