MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

5387 _Annotated__element: ColumnElement[Any]
5388
5389 def __init__(self, element, values):
5390 Annotated.__init__(self, element, values)
5391 for attr in (
5392 "comparator",
5393 "_proxy_key",
5394 "_tq_key_label",
5395 "_tq_label",
5396 "_non_anon_label",
5397 "type",
5398 ):
5399 self.__dict__.pop(attr, None)
5400 for attr in ("name", "key", "table"):
5401 if self.__dict__.get(attr, False) is None:
5402 self.__dict__.pop(attr)
5403
5404 def _with_annotations(self, values):
5405 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