Skip to content

fix pd.read_csv inferred type is Unknown but go to definition works. #1819#4185

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:1819
Open

fix pd.read_csv inferred type is Unknown but go to definition works. #1819#4185
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:1819

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #1819

Root cause: bundled stubs could resolve foo.pyi instead of foo/__init__.pyi.

For pandas, that selected an empty pandas.io.parsers.pyi, losing the read_csv export.

Bundled resolution now matches Python’s package-first precedence across all bundled stub sources.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pd.read_csv inferred type is Unknown but go to definition works.

1 participant