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

Method _inited

tortoise/__init__.py:117–124  ·  view source on GitHub ↗

Check if Tortoise is initialized. Returns False if no context is active.

(cls)

Source from the content-addressed store, hash-verified

115
116 @classproperty
117 def _inited(cls) -> bool:
118 """
119 Check if Tortoise is initialized.
120
121 Returns False if no context is active.
122 """
123 ctx = cls._get_context()
124 return ctx.inited if ctx else False
125
126 @classmethod
127 def is_inited(cls) -> bool:

Callers

nothing calls this directly

Calls 1

_get_contextMethod · 0.80

Tested by

no test coverage detected