basedpyright
basedpyright copied to clipboard
Find all references for __init__ doesn't work correctly
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