[docs]classTagDefinition:""" Container for properties of a custom YAML tag. Parameters ---------- tag_uri : str Tag URI. schema_uris : str, optional URI of the schema that should be used to validate objects with this tag. title : str, optional Short description of the tag. description : str, optional Long description of the tag. """def__init__(self,tag_uri,*,schema_uris=None,title=None,description=None):if"*"intag_uri:msg="URI patterns are not permitted in TagDefinition"raiseValueError(msg)self._tag_uri=tag_uriifschema_urisisNone:self._schema_uris=[]elifisinstance(schema_uris,list):self._schema_uris=schema_uriselse:self._schema_uris=[schema_uris]self._title=titleself._description=description@propertydeftag_uri(self):""" Get the tag URI. Returns ------- str """returnself._tag_uri@propertydefschema_uris(self):""" Get the URIs of the schemas that should be used to validate objects with this tag. Returns ------- list """returnself._schema_uris@propertydeftitle(self):""" Get the short description of the tag. Returns ------- str or None """returnself._title@propertydefdescription(self):""" Get the long description of the tag. Returns ------- str or None """returnself._descriptiondef__repr__(self):returnf"<TagDefinition URI: {self.tag_uri}>"