MCPcopy
hub / github.com/tortoise/tortoise-orm / __post_init__

Method __post_init__

tortoise/config.py:14–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 url: str
13
14 def __post_init__(self) -> None:
15 if not isinstance(self.url, str) or not self.url:
16 raise ConfigurationError("DBUrlConfig.url must be a non-empty string")
17
18 def to_config(self) -> str:
19 return self.url

Callers

nothing calls this directly

Calls 1

ConfigurationErrorClass · 0.90

Tested by

no test coverage detected