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

Method __init__

lib/sqlalchemy/sql/base.py:2531–2538  ·  view source on GitHub ↗
(
        self, collection: WriteableColumnCollection[_COLKEY, _COL_co]
    )

Source from the content-addressed store, hash-verified

2529 _parent: WriteableColumnCollection[_COLKEY, _COL_co]
2530
2531 def __init__(
2532 self, collection: WriteableColumnCollection[_COLKEY, _COL_co]
2533 ):
2534 object.__setattr__(self, "_parent", collection)
2535 object.__setattr__(self, "_index", collection._index)
2536 object.__setattr__(self, "_collection", collection._collection)
2537 object.__setattr__(self, "_colset", collection._colset)
2538 object.__setattr__(self, "_proxy_index", collection._proxy_index)
2539
2540 def _as_readonly(self) -> ReadOnlyColumnCollection[_COLKEY, _COL_co]:
2541 return self

Callers 1

__setstate__Method · 0.95

Calls 1

__setattr__Method · 0.45

Tested by

no test coverage detected