2 ms·
In a language with a sensible typing system, I would create class Route: _route = [] # can be GoogleyRoute or MetaRoute And import Route everywhere. That
by nine_zeros 5y ago
In a language with a sensible typing system, I would create
class Route:
_route = [] # can be GoogleyRoute or MetaRoute
And import Route everywhere. That import would help in creating instance objects AND be used as a type.
But we can't do this with the spaghetti that python type annotations are.