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

Method __init__

lib/sqlalchemy/util/_py_collections.py:166–171  ·  view source on GitHub ↗
(self, d: Optional[Iterable[_T]] = None)

Source from the content-addressed store, hash-verified

164 _list: List[_T]
165
166 def __init__(self, d: Optional[Iterable[_T]] = None) -> None:
167 if d is not None:
168 self._list = unique_list(d)
169 super().update(self._list)
170 else:
171 self._list = []
172
173 def copy(self) -> OrderedSet[_T]:
174 cp = self.__class__()

Callers 4

__new__Method · 0.45
unionMethod · 0.45
_union_w_kwMethod · 0.45
merge_withMethod · 0.45

Calls 2

unique_listFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected