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.

Go to definition on callable property returns two definitions

See original GitHub issue

Bug Report

๐Ÿ”Ž Search Terms

  • go to definition
  • callable

๐Ÿ•— Version & Regression Information


โฏ Playground Link

Playground link with relevant code

๐Ÿ’ป Code

interface ICallable {
    (): any
class K {
    callable: ICallable;

new K().callable()

Run go to definition on callable

๐Ÿ™ Actual behavior

Two definitions are returned, for for K.callable and one for (): any in ICallable

๐Ÿ™‚ Expected behavior

Just the definition for K.callable is returned

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

jriekencommented, Apr 6, 2021

Can we start to treat this as a regression please. This was clearly working for years and has degraded significantly - any Event member in VS Code cannot be navigated to anymore.

bpaserocommented, Mar 24, 2021


Read more comments on GitHub >

github_iconTop Results From Across the Web

Python property callable - Stack Overflow
So for example: class Book(object): def __init__(self, toc, pages): self._toc = toc self._pages = pages self.include_toc = False @property def ...
Read more >
do typing tools give the Python @property decorator a magic ...
The Python @property decorator documents a form where we can define a function with @property , then refer to that function name again...
Read more >
functools โ€” Higher-order functions and operations on callable ...
A comparison function is any callable that accepts two arguments, compares them, and returns a negative number for less-than, zero for equality,ย ...
Read more >
10. Callable Instances of Classes | OOP - Python Courses eu
A callable object is an object which can be used and behaves like a function but might not be a function. By using...
Read more >
Objects - Definition & Usage | AutoHotkey v2
Meta-functions define what happens when an undefined property or method is invoked. For example, if obj.unk has not been assigned a value, it...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found