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

Further improve return types in the numbers module #11375

Merged
merged 10 commits into from
Feb 16, 2024

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Feb 7, 2024

Alternative PR to #11371.

Followup to #11353 (fixes 2/3 new errors in #11353 (comment))

This comment has been minimized.

@AlexWaygood AlexWaygood marked this pull request as ready for review February 7, 2024 10:34
@AlexWaygood AlexWaygood changed the title Further improve return types in the numbers module [alt] Further improve return types in the numbers module Feb 7, 2024

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Feb 7, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/python_api.py:453: error: Argument 1 to "abs" has incompatible type "SupportsComplex"; expected "SupportsAbs[Never]"  [arg-type]

ibis (https://github.com/ibis-project/ibis)
- ibis/util.py:168: error: Unsupported left operand type for < (Never)  [operator]
+ ibis/util.py:168: error: Unsupported left operand type for < ("_RealLike")  [operator]
- ibis/util.py:168: error: Argument 1 to "abs" has incompatible type "SupportsComplex"; expected "SupportsAbs[Never]"  [arg-type]

@JelleZijlstra JelleZijlstra merged commit 7c3cb99 into python:main Feb 16, 2024
57 checks passed
@AlexWaygood AlexWaygood deleted the numbers-abs branch February 16, 2024 08:01
@AlexWaygood AlexWaygood restored the numbers-abs branch February 22, 2024 16:38
@AlexWaygood AlexWaygood deleted the numbers-abs branch April 1, 2024 09:10
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