Bug Report
fromtypingimportreveal_typeclassX:
y: intdef__eq__(self, other: object) ->bool:
returntype(other) isreveal_type(type(self)) andother.y==self.y
This works as you would expect - no errors.
But make a small change and
fromtypingimportreveal_typeclassX:
y: intdef__eq__(self, other: object) ->bool:
returntype(other) istype(self) andother.y==self.y
error: "object" has no attribute "y"
Bug Report
This works as you would expect - no errors.
But make a small change and
error: "object" has no attribute "y"