If I have python function with a string argument which needs to be in a specific list of values, what's the best way to handle this? Is there a convention to expressing this in the docstrings or anything?
eg.
def makeShape(shape):
assert shape in ["circle", "square", "triangle"]
Is there a nicer way to express that shape should always be one of those three values?