basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

Find all references for __init__ doesn't work correctly

Open vultix opened this issue 7 months ago • 0 comments

Description

When using "Find all references" on an __init__ function of a class, no references are found, even if the class is being initialized. Looks like this was fixed in pylance: https://github.com/microsoft/pylance-release/issues/4954

Example:

class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

person1 = Person("John", 25))

Find all references on __init__ above should find the Person("John", 25) call, but it doesn't

vultix avatar May 06 '25 14:05 vultix