MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _set_binops_check_strict

Function _set_binops_check_strict

lib/sqlalchemy/orm/collections.py:1326–1329  ·  view source on GitHub ↗

Allow only set, frozenset and self.__class__-derived objects in binops.

(self: Any, obj: Any)

Source from the content-addressed store, hash-verified

1324
1325
1326def _set_binops_check_strict(self: Any, obj: Any) -> bool:
1327 """Allow only set, frozenset and self.__class__-derived
1328 objects in binops."""
1329 return isinstance(obj, _set_binop_bases + (self.__class__,))
1330
1331
1332def _set_decorators() -> Dict[str, Callable[[_FN], _FN]]:

Callers 4

__ior__Function · 0.85
__isub__Function · 0.85
__iand__Function · 0.85
__ixor__Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected