Skip to content

Commit

Permalink
fix for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel committed Nov 23, 2023
1 parent 48f1f18 commit 0f83ddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions brother_ql_web/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging
from pathlib import Path
from typing import Any, cast, Tuple # TODO: Remove `Tuple` after dropping Python 3.8.
from typing import Any, cast, Dict # TODO: Remove `Dict` after dropping Python 3.8.

import bottle
from brother_ql_web.configuration import Configuration
Expand Down Expand Up @@ -39,7 +39,7 @@ def serve_static(filename: str) -> bottle.HTTPResponse:
@bottle.route("/labeldesigner") # type: ignore[misc]
@bottle.jinja2_view("labeldesigner.jinja2") # type: ignore[misc]
def labeldesigner() -> dict[str, Any]:
fonts = cast(dict[str, dict[str, str]], get_config("brother_ql_web.fonts"))
fonts = cast(Dict[str, Dict[str, str]], get_config("brother_ql_web.fonts"))
font_family_names = sorted(list(fonts.keys()))
configuration = cast(Configuration, get_config("brother_ql_web.configuration"))
return {
Expand Down Expand Up @@ -148,7 +148,7 @@ def print_text() -> dict[str, bool | str]:
def main(
configuration: Configuration,
fonts: dict[str, dict[str, str]],
label_sizes: list[Tuple[str, str]],
label_sizes: list[tuple[str, str]],
backend_class: BACKEND_TYPE,
) -> None:
app = bottle.default_app()
Expand Down

0 comments on commit 0f83ddc

Please sign in to comment.