question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`gd` command goes to .pyi file instead of source file

See original GitHub issue

When I run gd on built-in function or class, it goes to the .pyi file, which isn’t very helpful. Can it go to the source file?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lainisourgodcommented, Feb 11, 2021

@fannheyward seems pylance fixed the issue by somehow separating go-to-definition and go-to-declaration, first going to .py files, second going to .pyi. Can coc-pyright do something similar?

0reactions
fannheywardcommented, Jan 8, 2021

but some will just go to .pyi

Looks like Pyright can’t find the py file for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

declaration going to typing instead of source code for python ...
Go to declaration going to typing instead of source code for python ... typeshed/stdlib/3/collections/__init__.pyi file which is imported from typing.
Read more >
How do I view the .py source code files instead of .pyi python ...
I am using VS Code v1. 71.0 version for my django apps. As a convention (standard) when we press and hold Ctrl (in...
Read more >
Category: Tech | Matrix.org
This is a command line option which turns on a number of extra checks ... Apparently contains a script merge-pyi to annotate a...
Read more >
Available lexers - Pygments
Simple lexer for Microsoft Visual FoxPro source code. FoxProLexer ... Lexers for the Google Go language ... Lexer for Smart Game Format (sgf)...
Read more >
Commands help - BrainVISA
-l, --list only list files and directories that will be deleted, do not delete ... disabled] -s suffix the suffix to use for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found