MCPcopy
hub / github.com/django/django / _rhs_not_none_values

Method _rhs_not_none_values

django/contrib/postgres/fields/array.py:277–282  ·  view source on GitHub ↗
(self, rhs)

Source from the content-addressed store, hash-verified

275 return "%s::%s" % (rhs, cast_type), rhs_params
276
277 def _rhs_not_none_values(self, rhs):
278 for x in rhs:
279 if isinstance(x, (list, tuple)):
280 yield from self._rhs_not_none_values(x)
281 elif x is not None:
282 yield True
283
284
285@ArrayField.register_lookup

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected