Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix --install-types masking failure details#17485

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hauntsaninja merged 3 commits intopython:masterfromwyattscarpenter:patch-1
Dec 30, 2024

Conversation

@wyattscarpenter
Copy link
Contributor

It seems that: if the mypy cache dir wasn't created, this code would do an exit, preventing the actual errors from being printed. So I've removed the exit. More information is available at the issue I claim this fixes.

Fixes#10768

turboBasic, wyattscarpenter, and stounfo reacted with thumbs up emoji
It seems that if the mypy cache dir wasn't created, this code would do an exit, preventing the actual errors from being printed. So I've removed the exit.
@github-actions

This comment has been minimized.

@wyattscarpenterwyattscarpenter changed the titleFix https://github.com/python/mypy/issues/10768Fix: --install-types can mask failure details (#10768) (https://github.com/python/mypy/issues/10768)Jul 24, 2024
@wyattscarpenter
Copy link
ContributorAuthor

wyattscarpenter commentedAug 20, 2024
edited
Loading

I should add that I've confirmed this works usinghttps://github.com/tk-woven/mypy-install-types-mre

I've installed my patch branch as a git source in pip, and it works on the mre. In contrast, when I installed the current mypy master (mypy 1.12.0+dev.fe15ee69b9225f808f8ed735671b73c31ae1bed8 (compiled: no)) as a git source in pip, it still has theerror: --install-types failed (no mypy cache directory) error.

I've been using the mypy from my patch branch as a daily driver and haven't noticed any other problems resulting from this change (although theoretically there could be some obscure edge case I just don't run into).

@wyattscarpenter
Copy link
ContributorAuthor

As a note to myself: if this pr is accepted, or the issue is otherwise fixed, I can get rid of the workaround I added to this other project:https://github.com/databricks/databricks-sql-python/blob/main/.github/workflows/code-quality-checks.yml#L164

@hauntsaninjahauntsaninja changed the titleFix: --install-types can mask failure details (#10768) (https://github.com/python/mypy/issues/10768)Fix --install-types masking failure detailsDec 30, 2024
@github-actions
Copy link
Contributor

According tomypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninjahauntsaninja merged commit7b61945 intopython:masterDec 30, 2024
18 checks passed
@wyattscarpenterwyattscarpenter deleted the patch-1 branchJanuary 2, 2025 01:47
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestJan 2, 2025
v1.14.1 is the current version, andpython/mypy#17485 has the "upnext" label, so 1.15 should do
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestJan 2, 2025
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestMar 11, 2025
v1.14.1 is the current version, andpython/mypy#17485 has the "upnext" label, so 1.15 should do
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestMar 11, 2025
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestMar 11, 2025
v1.14.1 is the current version, andpython/mypy#17485 has the "upnext" label, so 1.15 should doSigned-off-by: wyattscarpenter <wyattscarpenter@gmail.com>
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestMar 11, 2025
seepython/mypy#17485 orpython/mypy#10768 for more informationSigned-off-by: wyattscarpenter <wyattscarpenter@gmail.com>
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestMay 9, 2025
v1.14.1 is the current version, andpython/mypy#17485 has the "upnext" label, so 1.15 should doSigned-off-by: wyattscarpenter <wyattscarpenter@gmail.com>
wyattscarpenter added a commit to wyattscarpenter/databricks-sql-python that referenced this pull requestMay 9, 2025
seepython/mypy#17485 orpython/mypy#10768 for more informationSigned-off-by: wyattscarpenter <wyattscarpenter@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

--install-types can mask failure details

2 participants

@wyattscarpenter@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp