MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / hasAttr

Function hasAttr

python/seldon/shell/attr_schema_utils.py:15–19  ·  view source on GitHub ↗
(attrs,name)

Source from the content-addressed store, hash-verified

13 text='TEXT', enum='ENUM')
14
15def hasAttr(attrs,name):
16 for attr in attrs:
17 if attr["name"] == name:
18 return True
19 return False
20
21def addAttrsToDb(db, attrs, item_type):
22 if not hasAttr(attrs,"content_type"):

Callers 1

addAttrsToDbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected