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

Method __init__

tortoise/exceptions.py:88–91  ·  view source on GitHub ↗
(self, model: type[Model], pk_name: str, pk_val: Any)

Source from the content-addressed store, hash-verified

86 """
87
88 def __init__(self, model: type[Model], pk_name: str, pk_val: Any) -> None:
89 self.model: type[Model] = model
90 self.pk_name: str = pk_name
91 self.pk_val: Any = pk_val
92
93 def __str__(self) -> str:
94 return f"{self.model.__name__} has no object with {self.pk_name}={self.pk_val}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected