in mozilla_schema_generator/matcher.py [0:0]
def __init__(self, match_obj: dict, *, _type=None, table_group=None):
"""
table_group: required, which table that group belongs in
type: optional, the type of the metrics
All other fields are matched as exact matches,
except for `contains` which checks that that value
is in the associated array.
"""
self.table_group = table_group or match_obj.get(self.table_group_key)
self.type = _type or match_obj.get(self.type_key)
self.matcher = {
k: v
for k, v in match_obj.items()
if k not in {self.table_group_key, self.type_key}
}