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

pandas.DataFrame() is Any #292

Open
JelleZijlstra opened this issue Dec 2, 2021 · 0 comments
Open

pandas.DataFrame() is Any #292

JelleZijlstra opened this issue Dec 2, 2021 · 0 comments

Comments

@JelleZijlstra
Copy link
Contributor

Revealed type is 'Any[from_another]' (code: inference_failure)
In <test input> at line 6
   3: def f() -> pandas.DataFrame():  # E: invalid_annotation
   4:     reveal_type(f)
   5:     reveal_type(pandas.DataFrame)
   6:     reveal_type(pandas.DataFrame())
                      ^
   7:     raise NotImplementedError

(found while I was trying to figure out why the annotation wasn't flagged as invalid—perhaps we should be stricter there anyway)

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

No branches or pull requests

1 participant