Mathias Panzenböck <grosser.meister.morti at ...> writes: > > def annotations(**annots): > def deco(obj): > if hasattr(obj,'__annotations__'): > obj.__annotations__.update(annots) > else: > obj.__annotations__ = annots > return obj > return deco Why would you want to do that? > > def setannot(obj, key, value): I don't see the point.