diff options
| author | 2024-03-08 13:48:11 +0800 | |
|---|---|---|
| committer | 2024-03-08 13:48:11 +0800 | |
| commit | b3b93abe38a7bee5d554553a77ba66a978ea7d06 (patch) | |
| tree | 79cc8dd2fe7c744fa96864d86c4d3a2f968f3c34 /src | |
| parent | dbbee3f20975456d8d87deaa97ec64473b6d3150 (diff) | |
| download | ipm-b3b93abe38a7bee5d554553a77ba66a978ea7d06.tar.gz ipm-b3b93abe38a7bee5d554553a77ba66a978ea7d06.zip | |
fix(python): fix support for python==3.8
Diffstat (limited to 'src')
| -rw-r--r-- | src/ipm/logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipm/logging.py b/src/ipm/logging.py index 17fb965..fa8d5d5 100644 --- a/src/ipm/logging.py +++ b/src/ipm/logging.py @@ -1,3 +1,4 @@ +from typing import Optional from rich.console import Console from rich.prompt import Confirm, Prompt from .typing import List, Any @@ -52,7 +53,7 @@ def confirm(message: str, default: bool = False) -> bool: def ask( message: str, - choices: List[str] | None = None, + choices: Optional[List[str]] = None, default: Any = None, echo: bool = False, ) -> Any: |
