MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _has_annotation

Method _has_annotation

lib/sqlalchemy/orm/relationships.py:2597–2602  ·  view source on GitHub ↗
(self, clause: ClauseElement, annotation: str)

Source from the content-addressed store, hash-verified

2595 return _deep_deannotate(self.primaryjoin)
2596
2597 def _has_annotation(self, clause: ClauseElement, annotation: str) -> bool:
2598 for col in visitors.iterate(clause, {}):
2599 if annotation in col._annotations:
2600 return True
2601 else:
2602 return False
2603
2604 @util.memoized_property
2605 def _has_foreign_annotations(self) -> bool:

Callers 3

_annotate_localMethod · 0.95

Calls 1

iterateMethod · 0.80

Tested by

no test coverage detected