From 7df64ba14453685ddd6940fd4e1d3f69c8db507f Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 17 Jul 2022 16:20:50 +0200 Subject: Use a type hint syntax compatible with python 3.7 --- hazwaz/unittest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3