MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / hasparent

Method hasparent

lib/sqlalchemy/orm/attributes.py:466–469  ·  view source on GitHub ↗
(
        self, state: InstanceState[Any], optimistic: bool = False
    )

Source from the content-addressed store, hash-verified

464 return op(other, self.comparator, **kwargs) # type: ignore[no-any-return] # noqa: E501
465
466 def hasparent(
467 self, state: InstanceState[Any], optimistic: bool = False
468 ) -> bool:
469 return self.impl.hasparent(state, optimistic=optimistic) is not False
470
471 def _column_strategy_attrs(self) -> Sequence[QueryableAttribute[Any]]:
472 return (self,)

Callers

nothing calls this directly

Calls 1

hasparentMethod · 0.45

Tested by

no test coverage detected