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 44
55import codecs
66import os
7- from typing import Iterator
7+ from typing import TYPE_CHECKING
88
99import pytest
1010
1313from barcode import version
1414from barcode .writer import ImageWriter
1515
16+ if TYPE_CHECKING :
17+ from collections .abc import Iterator
18+
1619PATH = os .path .dirname (os .path .abspath (__file__ ))
1720TESTPATH = os .path .join (PATH , "test_outputs" )
1821HTMLFILE = os .path .join (TESTPATH , "index.html" )
You can’t perform that action at this time.
0 commit comments