Skip to content

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))

@github-actions

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
@github-actions

This comment has been minimized.

@github-actions
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]

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