Method
parse
(self, manager: "CommandManager", t: Choice, s: str)
Source from the content-addressed store, hash-verified
| 431 | return manager.execute(t.options_command) |
| 432 | |
| 433 | def parse(self, manager: "CommandManager", t: Choice, s: str) -> str: |
| 434 | opts = manager.execute(t.options_command) |
| 435 | if s not in opts: |
| 436 | raise ValueError("Invalid choice.") |
| 437 | return s |
| 438 | |
| 439 | def is_valid(self, manager: "CommandManager", typ: Any, val: Any) -> bool: |
| 440 | try: |
Callers
nothing calls this directly
Tested by
no test coverage detected