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

Method __init__

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

Source from the content-addressed store, hash-verified

89 return cls
90
91 def __init__(self, d: Optional[Iterable[_T]] = None) -> None:
92 if d is not None:
93 if isinstance(d, set) or isinstance(d, dict):
94 self._list = list(d)
95 else:
96 self._list = unique_list(d)
97 set.__init__(self, self._list)
98 else:
99 self._list = []
100 set.__init__(self)
101
102 def copy(self) -> OrderedSet[_T]:
103 return self._from_list(list(self._list))

Callers

nothing calls this directly

Calls 1

unique_listFunction · 0.85

Tested by

no test coverage detected