Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def tests_path(*comps):
return Path(__file__).parent.joinpath(*nfilter(comps))
def format(self, item):
vs = self.get_obj(item)
return ', '.join(
nfilter([getattr(vs, 'source', None), linked_references(self.dt.req, vs)]))
def feature_properties(self, ctx, req, valueset):
return {
'values': list(valueset.values),
'label': ', '.join(nfilter(v.name for v in valueset.values))
or self.get_language(ctx, req, valueset).name}