Mark Sandler

Results 5 comments of Mark Sandler

@yitongx do you want to send a pull request you change into a main branch? :)

FWIW we ended up implementing a small wrapper that does that for typeguard, it is literally ~30 lines of code (of which only 2 lines are typeguard specific, 15 lines...

@sobolevn Yes, your original example is WAI - since property wasn't overriden. But here we explicity create a new override, so naively i would expect it to override the property...

The example above of the workaround, isn't really very useful: ```python @dc.dataclass class B(A): _x: int | None = None @property def b(self) -> int: return self._x or 0 @b.setter...

But we do set attribute in some cases (e.g. when default is set) just not the others (when default_facotry). Which is confusing to say the least. On Thu, Sep 26,...