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

Method __str__

examples/blacksheep/models.py:9–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7 username = fields.CharField(max_length=63)
8
9 def __str__(self) -> str:
10 return f"User {self.id}: {self.username}"
11
12
13UserPydanticOut = pydantic_model_creator(Users, name="UserOut")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected