aboutsummaryrefslogtreecommitdiff
path: root/pw_cli/py/pw_cli/envparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'pw_cli/py/pw_cli/envparse.py')
-rw-r--r--pw_cli/py/pw_cli/envparse.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pw_cli/py/pw_cli/envparse.py b/pw_cli/py/pw_cli/envparse.py
index b7cccbba8..182936f2d 100644
--- a/pw_cli/py/pw_cli/envparse.py
+++ b/pw_cli/py/pw_cli/envparse.py
@@ -22,6 +22,7 @@ from typing import (
Generic,
IO,
List,
+ Literal,
Mapping,
Optional,
TypeVar,
@@ -205,9 +206,7 @@ def strict_bool(value: str) -> bool:
)
-# TODO(mohrr) Switch to Literal when no longer supporting Python 3.7.
-# OpenMode = Literal['r', 'rb', 'w', 'wb']
-OpenMode = str
+OpenMode = Literal['r', 'rb', 'w', 'wb']
class FileType: