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

(🐞) Don't report when inferring expression types in an empty context #12729

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KotlinIsland
Copy link
Contributor

@KotlinIsland KotlinIsland commented May 5, 2022

Description

On overloads, don't report reveals and Any exprs when inferring func args from an empty context.

Test Plan

I added a test. 😄

resolves #11953
resolves #12727
resolves #5879

@KotlinIsland KotlinIsland force-pushed the peek_ahead branch 2 times, most recently from 7bc3db4 to 2c49887 Compare May 5, 2022 04:19
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

mypy/checkexpr.py Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

@KotlinIsland KotlinIsland changed the title Don't report when inferring expression types in an empty context (🐞) Don't report when inferring expression types in an empty context Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants