(option: Options, default: bool)
| 181 | |
| 182 | |
| 183 | def _get_boolean_with_default(option: Options, default: bool) -> bool: |
| 184 | global_choice = OPTIONS[option] |
| 185 | |
| 186 | if global_choice == "default": |
| 187 | return default |
| 188 | elif isinstance(global_choice, bool): |
| 189 | return global_choice |
| 190 | else: |
| 191 | raise ValueError( |
| 192 | f"The global option {option} must be one of True, False or 'default'." |
| 193 | ) |
| 194 | |
| 195 | |
| 196 | def _get_keep_attrs(default: bool) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…