MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/orm/decl_base.py:332–347  ·  view source on GitHub ↗
(
        self,
        registry: _RegistryType,
        cls_: Type[Any],
    )

Source from the content-addressed store, hash-verified

330 declared_attr_reg: Dict[declared_attr[Any], Any]
331
332 def __init__(
333 self,
334 registry: _RegistryType,
335 cls_: Type[Any],
336 ):
337 super().__init__(cls_)
338 self.properties = util.OrderedDict()
339 self.declared_attr_reg = {}
340
341 instrumentation.register_class(
342 self.cls,
343 finalize=False,
344 registry=registry,
345 declarative_scan=self,
346 init_method=registry.constructor,
347 )
348
349 def set_cls_attribute(self, attrname: str, value: _T) -> _T:
350 manager = instrumentation.manager_of_class(self.cls)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected