4 ms·
The problem here seems to be inheritance. Why share a base class? Why not write Frobulated = Foo|Bar and go about your day writing functions like def frotz
by sevensor 2y ago
The problem here seems to be inheritance. Why share a base class? Why not write Frobulated = Foo|Bar and go about your day writing functions like
def frotz(x: Frobulated) -> str:
return f”{x.value} is the value of x”