Skip to content

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

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

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. ✅

@samwgoldman

Copy link
Copy Markdown
Member

Closing in favor of #4286 which fixes the underlying issue in a more general way

@asukaminato0721
asukaminato0721 deleted the 1819 branch July 25, 2026 02:13
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.

2 participants