MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / write_to_file

Method write_to_file

extraction/event_schema.py:22–26  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

20 return EventSchema(type_list, role_list, type_role_dict)
21
22 def write_to_file(self, filename):
23 with open(filename, 'w') as output:
24 output.write(json.dumps(self.type_list) + '\n')
25 output.write(json.dumps(self.role_list) + '\n')
26 output.write(json.dumps(self.type_role_dict) + '\n')
27
28
29def merge_schema(schema_list: List[EventSchema]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected