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

Method __init__

lib/sqlalchemy/sql/elements.py:5824–5837  ·  view source on GitHub ↗
(self, element, values)

Source from the content-addressed store, hash-verified

5822 _Annotated__element: ColumnElement[Any]
5823
5824 def __init__(self, element, values):
5825 Annotated.__init__(self, element, values)
5826 for attr in (
5827 "comparator",
5828 "_proxy_key",
5829 "_tq_key_label",
5830 "_tq_label",
5831 "_non_anon_label",
5832 "type",
5833 ):
5834 self.__dict__.pop(attr, None)
5835 for attr in ("name", "key", "table"):
5836 if self.__dict__.get(attr, False) is None:
5837 self.__dict__.pop(attr)
5838
5839 def _with_annotations(self, values):
5840 clone = super()._with_annotations(values)

Callers

nothing calls this directly

Calls 3

__init__Method · 0.45
popMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected