Validate and get the user-specified configuration option. Raises: OptionParseFailure: Value from config file did not meet validation constraints.
(config_value: str, default: "ValidatedValue")
| 58 | @staticmethod |
| 59 | @abstractmethod |
| 60 | def from_config(config_value: str, default: "ValidatedValue") -> "ValidatedValue": |
| 61 | """Validate and get the user-specified configuration option. |
| 62 | |
| 63 | Raises: |
| 64 | OptionParseFailure: Value from config file did not meet validation constraints. |
| 65 | """ |
| 66 | ... |
| 67 | |
| 68 | def __repr__(self) -> str: |
| 69 | return str(self.value) |
nothing calls this directly
no outgoing calls
no test coverage detected