(self)
| 85 | NEVER = 2 |
| 86 | |
| 87 | def __bool__(self): |
| 88 | # For backwards compatibility |
| 89 | if self == _CopyMode.ALWAYS: |
| 90 | return True |
| 91 | |
| 92 | if self == _CopyMode.IF_NEEDED: |
| 93 | return False |
| 94 | |
| 95 | raise ValueError(f"{self} is neither True nor False.") |
nothing calls this directly
no outgoing calls
no test coverage detected