Skip to content

Self is not inferred for properties #1448

@vlashada

Description

@vlashada

Summary

from typing import reveal_type

class A:
    name: str
    def b(self):
        reveal_type(self.name) # type: str
    @property
    def c(self):
        reveal_type(self.name) # type: unknown

https://play.ty.dev/1a887aa0-89b8-464f-94f6-691182a64de5

Version

No response

Metadata

Metadata

Assignees

Labels

attribute accessInstance attributes, class attributes, etc.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions