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

Add explanation if argument type is incompatible because of a "numbers" type by JukkaL · Pull Request #15137 · python/mypy · GitHub

Repository navigation

Add explanation if argument type is incompatible because of a "numbers" type - #15137

Merged
hauntsaninja merged 5 commits into
masterfrom
numbers-note
Apr 26, 2023
Merged

hauntsaninja merged 5 commits into
masterfrom
numbers-note

Conversation

JukkaL commented Apr 25, 2023

Copy link
Copy Markdown
Collaborator

Types from numbers aren't really supported in any useful way. Make it more explicit, since this is surprising.

Work on #3186.

JukkaL changed the title Add explanation if argument type is incompatible because of type from "numbers" Add explanation if argument type is incompatible because a "numbers" type Apr 25, 2023
JukkaL changed the title Add explanation if argument type is incompatible because a "numbers" type Add explanation if argument type is incompatible because of a "numbers" type Apr 25, 2023

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Brilliant that we're improving usability here!

Comment thread mypy/messages.py Outdated
Comment thread mypy/messages.py

This comment has been minimized.

JukkaL and others added 3 commits April 25, 2023 17:19
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

yay!

Copy link
Copy Markdown
Contributor

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

spack (https://github.com/spack/spack) got 1.10 slower (67.7s -> 74.6s)

hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This looks great, thank you!

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.

3 participants


Back | FazBrowse Home | New Git URL