5 Mar
2023
5 Mar
'23
3:46 p.m.
You can annotate the class variable as a class that implements the descriptor protocol (`__get__` and `__set__` methods). That way, it can return a different type when accessed through an instance of `Entity`.