aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-07-17 16:20:50 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-07-17 16:20:50 +0200
commit7df64ba14453685ddd6940fd4e1d3f69c8db507f (patch)
treeb8fb6b64b487932acda50632b56ce44f051e7641
parentbe8226f0ddb1f412cd8d608ee0270b894b814a99 (diff)
Use a type hint syntax compatible with python 3.7
-rw-r--r--hazwaz/unittest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/hazwaz/unittest.py b/hazwaz/unittest.py
index 2b28cdc..96689d5 100644
--- a/hazwaz/unittest.py
+++ b/hazwaz/unittest.py
@@ -1,11 +1,14 @@
import contextlib
import io
import sys
+import typing
import unittest
class HazwazTestCase(unittest.TestCase):
- def run_with_argv(self, cmd, argv: list[str]) -> dict[str, io.StringIO]:
+ def run_with_argv(
+ self, cmd, argv: typing.List[str]
+ ) -> typing.Dict[str, io.StringIO]:
"""
Run a command with a list of command line options.