self.init_method
                if self.init_method is not None
                and self.class_.__init__ is object.__init__
                else self.class_.__init__
            )
        if finalize and not self._finalized:
            self._finalize()
    def _finalize(self) -> None:
        if self._finalized:
            return
        self._finalized = True
        self._instrument_init()
        _instrumentation_factory.dispatch.class_instrument(self.class_)
    def __hash__(self) -> int:  # type: ignore[override]
        return id(self)
    def __eq__(self, other: Any) -> bool:
        return other is self
    @property
    def is_mapped(self) -> bool:
        return "mapper" in self.__dict__
    @HasMemoized.memoized_attribute
    def _all_key_set(self):
        return frozenset(self)
    @HasMemoized.memoized_attribute
    def _collection_impl_keys(self):
        return frozenset(
            [attr.key for attr in self.values() if attr.impl.collection]
        )
    @HasMemoized.memoized_attribute
    def _scalar_loader_impls(self):
        return frozenset(
            [
                attr.impl
                for attr in self.values()
                if attr.impl.accepts_scalar_loader
            ]
        )
    @HasMemoized.memoized_attribute
    def _loader_impls(self):
        return frozenset([attr.impl for attr in self.values()])
    @util.memoized_property
    def mapper(self) -> Mapper[_O]:
        # raises unless self.mapper has been assigned
        raise exc.UnmappedClassError(self.class_)
    def _all_sqla_attributes(self, exclude=None):