Describe the bug
Accessing a method on a class does not bind any associated type parameters to their default value leaving types unknown. I don't think this is described in PEP 696 but I can add it if you think it should be.
Code or Screenshots
class Foo[T = int]:
def bar(self) -> None:
...
Foo.bar(Foo())
VS Code extension or command-line
pylance v2023.8.40
Describe the bug
Accessing a method on a class does not bind any associated type parameters to their default value leaving types unknown. I don't think this is described in PEP 696 but I can add it if you think it should be.
Code or Screenshots
VS Code extension or command-line
pylance v2023.8.40