Skip to content

Commit

Permalink
mypy type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Feb 4, 2022
1 parent 6180446 commit a850cff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qrcode/console_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import optparse
import os
import sys
from typing import Iterable, Optional, Type
from typing import Dict, Iterable, Optional, Set, Type

import qrcode
from qrcode.image.base import BaseImage, DrawerAliases
Expand Down Expand Up @@ -157,7 +157,7 @@ def get_factory(module: str) -> Type[BaseImage]:


def get_drawer_help() -> str:
help = {}
help: Dict[str, Set] = {}
for alias, module in default_factories.items():
try:
image = get_factory(module)
Expand Down
2 changes: 1 addition & 1 deletion qrcode/image/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class SvgImage(SvgFragmentImage):
"""

background: Optional[str] = None
drawer_aliases = {
drawer_aliases: qrcode.image.base.DrawerAliases = {
"circle": (svg_drawers.SvgCircleDrawer, {}),
"gapped-circle": (svg_drawers.SvgCircleDrawer, {"size_ratio": Decimal(0.8)}),
"gapped-square": (svg_drawers.SvgSquareDrawer, {"size_ratio": Decimal(0.8)}),
Expand Down

0 comments on commit a850cff

Please sign in to comment.