Allow only set, frozenset and self.__class__-derived objects in binops.
(self: Any, obj: Any)
| 1324 | |
| 1325 | |
| 1326 | def _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 | |
| 1332 | def _set_decorators() -> Dict[str, Callable[[_FN], _FN]]: |