(self, other)
| 1592 | return self.__class__(value | other_value) |
| 1593 | |
| 1594 | def __and__(self, other): |
| 1595 | other_value = self._get_value(other) |
| 1596 | if other_value is NotImplemented: |
| 1597 | return NotImplemented |
| 1598 | |
| 1599 | for flag in self, other: |
| 1600 | if self._get_value(flag) is None: |
| 1601 | raise TypeError(f"'{flag}' cannot be combined with other flags with &") |
| 1602 | value = self._value_ |
| 1603 | return self.__class__(value & other_value) |
| 1604 | |
| 1605 | def __xor__(self, other): |
| 1606 | other_value = self._get_value(other) |
nothing calls this directly
no test coverage detected