Skip to content

Commit ca3e498

Browse files
committed
Type updates
1 parent 76074a1 commit ca3e498

File tree

1 file changed

+5
-3
lines changed
  • qrcode/image/styles/moduledrawers

1 file changed

+5
-3
lines changed

qrcode/image/styles/moduledrawers/svg.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import abc
24
from decimal import Decimal
35
from typing import TYPE_CHECKING, NamedTuple
@@ -21,7 +23,7 @@ class Coords(NamedTuple):
2123

2224

2325
class BaseSvgQRModuleDrawer(QRModuleDrawer):
24-
img: "SvgFragmentImage"
26+
img: SvgFragmentImage
2527

2628
def __init__(self, *, size_ratio: Decimal = Decimal(1), **kwargs):
2729
self.size_ratio = size_ratio
@@ -97,7 +99,7 @@ def el(self, box):
9799

98100

99101
class SvgPathQRModuleDrawer(BaseSvgQRModuleDrawer):
100-
img: "SvgPathImage"
102+
img: SvgPathImage
101103

102104
def drawrect(self, box, is_active: bool):
103105
if not is_active:
@@ -109,7 +111,7 @@ def subpath(self, box) -> str: ...
109111

110112

111113
class SvgCompressedDrawer(BaseSvgQRModuleDrawer):
112-
img: "SvgPathImage"
114+
img: SvgPathImage
113115

114116
def drawrect(self, box, is_active: bool):
115117
if not is_active:

0 commit comments

Comments
 (0)