Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ discard
Method
discard
lib/sqlalchemy/util/_collections_cy.py:137–140 ·
view source on GitHub ↗
(self, element: _T, /)
Source
from the content-addressed store, hash-verified
135
set.add(self, element)
136
137
def
discard(self, element: _T, /) -> None:
138
if
element in self:
139
set.remove(self, element)
140
self._list.remove(element)
141
142
def
clear(self) -> None:
143
set.clear(self)
Callers
3
test_modify
Method · 0.95
merge_lists_w_ordering
Function · 0.45
get_cls_kwargs
Function · 0.45
Calls
1
remove
Method · 0.45
Tested by
1
test_modify
Method · 0.76