def addTagProp(self, name, tdef, info): if name in self.tagprops: raise s_exc.DupTagPropName(mesg=name) prop = TagProp(self, name, tdef, info) self.tagprops[name] = prop return prop
def addTagProp(self, name, tdef, info): if name in self.tagprops: raise s_exc.DupTagPropName(mesg=name) prop = TagProp(self, name, tdef, info) self.tagprops[name] = prop if prop.type.deprecated: mesg = f'The tag property {prop.name} is using a deprecated type {prop.type.name} which will' \ f' be removed in 3.0.0' logger.warning(mesg) return prop