Skip to content

Commit

Permalink
Python 3.6 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Mar 11, 2022
1 parent e215dbb commit 8f1d058
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion qrcode/image/svg.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import decimal
from decimal import Decimal
from typing import List, Literal, Optional, Type, Union, overload
from typing import List, Optional, Type, Union, overload

from typing_extensions import Literal

import qrcode.image.base
from qrcode.image.styles.moduledrawers import svg as svg_drawers
Expand Down
3 changes: 2 additions & 1 deletion qrcode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Dict,
Generic,
List,
Literal,
NamedTuple,
Optional,
Type,
Expand All @@ -13,6 +12,8 @@
overload,
)

from typing_extensions import Literal

from qrcode import constants, exceptions, util
from qrcode.image.base import BaseImage

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ include_package_data = True
packages = find:
install_requires =
colorama;platform_system=="Windows"
typing_extensions
python_requires = >= 3.6

[options.extras_require]
Expand Down

0 comments on commit 8f1d058

Please sign in to comment.