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

Go to definition actually goes to stubs #2967

Closed
965311532 opened this issue Jun 24, 2022 · 4 comments
Closed

Go to definition actually goes to stubs #2967

965311532 opened this issue Jun 24, 2022 · 4 comments

Comments

@965311532
Copy link

I'm having the same exact issue as:

Environment:

  • Language Server Version: 2022.6.30 (pyright 212d1465)
  • OS and version: Windows 10 21H2 (19044.1766)
  • Python version: 3.10.4 64bit

You can try to repro with pandas:

Animation

@bschnurr
Copy link
Member

it only goes to source if source path matches the imported stub. most likely timestamp exists somewhere other than 'tslib/timestamp'

@judej judej closed this as completed Jun 27, 2022
@965311532
Copy link
Author

Ok, so what is the intended way to actually get to the Timestamp definition?

@bschnurr
Copy link
Member

bschnurr commented Jun 27, 2022

Timestamp is compiled code. can't go to it, sorry
https://github.com/pandas-dev/pandas/blob/main/pandas/_libs/tslibs/timestamps.pxd

@965311532
Copy link
Author

Sorry, my bad. 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

3 participants