Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion barcode/codex.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from typing import Collection
from typing import Literal

from barcode.base import Barcode
Expand All @@ -17,6 +16,8 @@
from barcode.errors import NumberOfDigitsError

if TYPE_CHECKING:
from collections.abc import Collection

from barcode.writer import BaseWriter

__docformat__ = "restructuredtext en"
Expand Down
2 changes: 1 addition & 1 deletion barcode/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from barcode.version import version

if TYPE_CHECKING:
from typing import Generator
from collections.abc import Generator
from typing import Literal

from PIL.Image import Image as T_Image
Expand Down
5 changes: 4 additions & 1 deletion tests/test_manually.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import codecs
import os
from typing import Iterator
from typing import TYPE_CHECKING

import pytest

Expand All @@ -13,6 +13,9 @@
from barcode import version
from barcode.writer import ImageWriter

if TYPE_CHECKING:
from collections.abc import Iterator

PATH = os.path.dirname(os.path.abspath(__file__))
TESTPATH = os.path.join(PATH, "test_outputs")
HTMLFILE = os.path.join(TESTPATH, "index.html")
Expand Down
Loading