Open
Description
Describe the Bug
Minimal repro:
class NonDataDescriptor:
def __get__(self, instance: object, owner: type | None = None) -> str:
return "derp"
class C:
x = NonDataDescriptor()
def f(self):
self.x = 1 # This is okay
Expected: No error
Actual: Attribute x
of class C
is a read-only descriptor with no __set__
and cannot be set
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Metadata
Metadata
Assignees
Labels
No labels