Indeed, if it manages to be used, that means that the metaclass has already been called. Therefore it means that yaml_tag has already been read on the class and used to register the codec with pyyaml.
Therefore any modification of yaml_tag made by the decorator is anyway too late and will not change the tag that is associated with the class.
Indeed, if it manages to be used, that means that the metaclass has already been called. Therefore it means that
yaml_taghas already been read on the class and used to register the codec with pyyaml.Therefore any modification of
yaml_tagmade by the decorator is anyway too late and will not change the tag that is associated with the class.