Skip to content

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

Merged
abravalheri merged 1 commit intopypa:mainfrom
Avasam:ANN204-autofixes
Nov 11, 2024
Merged

ANN204 (missing return type for special methods) autofixes#4736
abravalheri merged 1 commit intopypa:mainfrom
Avasam:ANN204-autofixes

Conversation

@Avasam
Copy link
Copy Markdown
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
@abravalheri
Copy link
Copy Markdown
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