FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Further improve return types in the `numbers` module by AlexWaygood · Pull Request #11375 · python/typeshed · GitHub

Repository navigation

Further improve return types in the numbers module - #11375

Merged
JelleZijlstra merged 10 commits into
python:mainfrom
AlexWaygood:numbers-abs
Feb 16, 2024
Merged

JelleZijlstra merged 10 commits into
python:mainfrom
AlexWaygood:numbers-abs

Conversation

AlexWaygood commented Feb 7, 2024 •
edited
Loading

Copy link
Copy Markdown
Member

Alternative PR to #11371.

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

This comment has been minimized.

AlexWaygood marked this pull request as ready for review February 7, 2024 10:34
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.

github-actions Bot commented Feb 7, 2024

Copy link
Copy Markdown
Contributor

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]

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL