(self, node: dict, other)
| 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 |