File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 66from __future__ import annotations
77
88from typing import TYPE_CHECKING
9- from typing import Collection
109from typing import Literal
1110
1211from barcode .base import Barcode
1716from barcode .errors import NumberOfDigitsError
1817
1918if TYPE_CHECKING :
19+ from collections .abc import Collection
20+
2021 from barcode .writer import BaseWriter
2122
2223__docformat__ = "restructuredtext en"
Original file line number Diff line number Diff line change 1111from barcode .version import version
1212
1313if TYPE_CHECKING :
14- from typing import Generator
14+ from collections . abc import Generator
1515 from typing import Literal
1616
1717 from PIL .Image import Image as T_Image
Original file line number Diff line number Diff line change 33
44import codecs
55import os
6- from typing import Iterator
6+ from typing import TYPE_CHECKING
77
88import pytest
99
1212from barcode import version
1313from barcode .writer import ImageWriter
1414
15+ if TYPE_CHECKING :
16+ from collections .abc import Iterator
17+
1518PATH = os .path .dirname (os .path .abspath (__file__ ))
1619TESTPATH = os .path .join (PATH , "test_outputs" )
1720HTMLFILE = os .path .join (TESTPATH , "index.html" )
You can’t perform that action at this time.
0 commit comments