MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __isub__

Method __isub__

lib/sqlalchemy/ext/associationproxy.py:1963–1968  ·  view source on GitHub ↗
(self, s: AbstractSet[Any])

Source from the content-addressed store, hash-verified

1961 self.discard(value)
1962
1963 def __isub__(self, s: AbstractSet[Any]) -> Self:
1964 if not collections._set_binops_check_strict(self, s):
1965 return NotImplemented
1966 for value in s:
1967 self.discard(value)
1968 return self
1969
1970 def intersection(self, *s: Iterable[Any]) -> MutableSet[_T]:
1971 return set(self).intersection(*s)

Callers

nothing calls this directly

Calls 1

discardMethod · 0.95

Tested by

no test coverage detected