MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / _match_dict

Method _match_dict

aura/pattern_matching.py:251–260  ·  view source on GitHub ↗
(self, node: dict, other)

Source from the content-addressed store, hash-verified

249
250 # Dispatch method for basic python types
251 def _match_dict(self, node: dict, other) -> bool:
252 if type(other) != dict:
253 return False
254 if set(other.keys()) - set(node.keys()):
255 return False
256
257 for k, v in node.items():
258 if not self.match(v, other[k]):
259 return False
260 return True
261
262 def _match_list(self, node: list, other) -> bool:
263 return False # TODO

Callers 1

matchMethod · 0.95

Calls 1

matchMethod · 0.95

Tested by

no test coverage detected