a wandering happenstance on Nostr: npub1sys4g…eckr3 It’s baffling that class Point(dataclass): x: int; y: int; or ...
npub1sys4gja5v6r2pmsyan8ntwye9txrhzfe6yq4rnjt8jf6vguujuas5eckr3 (npub1sys…ckr3) It’s baffling that
class Point(dataclass): x: int; y: int;
or
class Point(metaclass=dataclass): x: int; y: int;
doesn’t work. Isn’t that the point of subtyping or submetatyping?
class Point(dataclass): x: int; y: int;
or
class Point(metaclass=dataclass): x: int; y: int;
doesn’t work. Isn’t that the point of subtyping or submetatyping?