Skip to content

Commit

Permalink
further fix for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel committed Oct 28, 2023
1 parent 16c07b6 commit 8c08b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from tempfile import NamedTemporaryFile
from typing import cast, Union
from typing import cast, Dict, Union

from brother_ql_web.configuration import (
Configuration,
Expand Down Expand Up @@ -61,7 +61,7 @@ class ConfigurationTestCase(TestCase):
@property
def example_json(self) -> dict[str, dict[str, str | int | dict[str, str]]]:
with open(self.example_configuration_path) as fd:
return cast(dict[str, dict[str, Union[str, int, dict[str, str]]]], json.load(fd))
return cast(Dict[str, Dict[str, Union[str, int, Dict[str, str]]]], json.load(fd))

def test_from_json(self) -> None:
with NamedTemporaryFile(suffix=".json", mode="w+t") as json_file:
Expand Down

0 comments on commit 8c08b7b

Please sign in to comment.