Method
__init__
(
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) |
Tested by
no test coverage detected