Skip to content

Commit

Permalink
Fix ruff issues for 3.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtheturtle committed Oct 25, 2023
1 parent abcea50 commit a01b7de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 4 additions & 5 deletions pip_check_reqs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
from dataclasses import dataclass, field
from importlib.util import find_spec
from pathlib import Path
from typing import (
Callable,
Generator,
Iterable,
)
from typing import TYPE_CHECKING, Callable

from packaging.markers import Marker
from packaging.utils import NormalizedName, canonicalize_name
Expand All @@ -24,6 +20,9 @@

from . import __version__

if TYPE_CHECKING:
from collections.abc import Generator, Iterable

log = logging.getLogger(__name__)


Expand Down
4 changes: 3 additions & 1 deletion pip_check_reqs/find_extra_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys
from functools import cache
from pathlib import Path
from typing import TYPE_CHECKING, Callable, Iterable
from typing import TYPE_CHECKING, Callable
from unittest import mock

from packaging.utils import NormalizedName, canonicalize_name
Expand All @@ -23,6 +23,8 @@
from pip_check_reqs.common import version_info

if TYPE_CHECKING:
from collections.abc import Iterable

from pip._internal.req.req_file import ParsedRequirement

log = logging.getLogger(__name__)
Expand Down
5 changes: 4 additions & 1 deletion pip_check_reqs/find_missing_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys
from functools import cache
from pathlib import Path
from typing import Callable, Iterable
from typing import TYPE_CHECKING, Callable
from unittest import mock

from packaging.utils import NormalizedName, canonicalize_name
Expand All @@ -25,6 +25,9 @@
from pip_check_reqs import common
from pip_check_reqs.common import FoundModule, version_info

if TYPE_CHECKING:
from collections.abc import Iterable

log = logging.getLogger(__name__)


Expand Down

0 comments on commit a01b7de

Please sign in to comment.