(opt: str, ctx: Context | None)
| 118 | |
| 119 | |
| 120 | def _normalize_opt(opt: str, ctx: Context | None) -> str: |
| 121 | if ctx is None or ctx.token_normalize_func is None: |
| 122 | return opt |
| 123 | prefix, opt = _split_opt(opt) |
| 124 | return f"{prefix}{ctx.token_normalize_func(opt)}" |
| 125 | |
| 126 | |
| 127 | class _Option: |
no test coverage detected