MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __init__

Method __init__

tortoise/migrations/graph.py:67–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65
66class MigrationGraph:
67 def __init__(self) -> None:
68 self.node_map: dict[MigrationKey, Node] = {}
69 self.nodes: dict[MigrationKey, Migration | None] = {}
70
71 def add_node(self, key: MigrationKey, migration: Migration) -> None:
72 if key in self.node_map:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected