MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / key_starts_with_dollar

Function key_starts_with_dollar

mongoengine/fields.py:1024–1030  ·  view source on GitHub ↗

Helper function to recursively determine if any key in a dictionary starts with a dollar

(d)

Source from the content-addressed store, hash-verified

1022
1023
1024def key_starts_with_dollar(d):
1025 """Helper function to recursively determine if any key in a
1026 dictionary starts with a dollar
1027 """
1028 for k, v in d.items():
1029 if (k.startswith("$")) or (isinstance(v, dict) and key_starts_with_dollar(v)):
1030 return True
1031
1032
1033class DictField(ComplexBaseField):

Callers 1

validateMethod · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected