It's clear from the code but not from the docstring which keys are required to exist in this dict (`description` is not, but `desc` is, for example). I also feel using a dictionary with only 2 supported keys is a bit of overkill.