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

VSCode questions #910

Closed
tonyxiao opened this issue Apr 18, 2024 · 6 comments
Closed

VSCode questions #910

tonyxiao opened this issue Apr 18, 2024 · 6 comments

Comments

@tonyxiao
Copy link

image

I'm getting warning from vscode even though I haven't installed pandas-stubs yet. Is this stub still needed? when I cmd+click in vscode after I install the stub, should I expect to be taken to the sub?

@tonyxiao
Copy link
Author

tonyxiao commented Apr 18, 2024

image

also why is it that tye type of cccc is Unknown? I would expect it to be str | Series[str] based on the pyi file
image

@Dr-Irv Dr-Irv changed the title Home page README inaccurate VSCode questions Apr 24, 2024
@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Apr 24, 2024

I'm getting warning from vscode even though I haven't installed pandas-stubs yet. Is this stub still needed? when I cmd+click in vscode after I install the stub, should I expect to be taken to the sub?

The stubs are shipped with VS Code.

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Apr 24, 2024

also why is it that tye type of cccc is Unknown? I would expect it to be str | Series[str] based on the pyi file

Please provide a complete code sample that can be copy-pasted.

I'm not seeing that problem.

@tonyxiao
Copy link
Author

You mean stubs comes by default in vscode already even without me installing pandas-stub? Where would it be stored on disk by default if so?

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Apr 24, 2024

You mean stubs comes by default in vscode already even without me installing pandas-stub? Where would it be stored on disk by default if so?

YOUR_HOME_DIRECTORY/.vscode-server/extensions/ms-python.vscode-pylance-2024.4.102/dist/bundled/stubs/pandas/

@tonyxiao
Copy link
Author

ah that makes sense. It's both cool and a bit unexpected that it's already there! Thank you!

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

2 participants