Skip to content

Commit

Permalink
chore: handle TCH violations
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Sep 28, 2024
1 parent b345e36 commit 967286b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/deptry/dependency_getter/builder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import logging
from collections.abc import Mapping
from dataclasses import dataclass, field
from pathlib import Path
from typing import TYPE_CHECKING
Expand All @@ -15,6 +14,7 @@
from deptry.utils import load_pyproject_toml

if TYPE_CHECKING:
from collections.abc import Mapping
from typing import Any

from deptry.dependency_getter.base import DependencyGetter
Expand Down
6 changes: 4 additions & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
import subprocess
import sys
import venv
from collections.abc import Generator
from contextlib import contextmanager
from dataclasses import dataclass
from pathlib import Path
from typing import Any
from typing import TYPE_CHECKING, Any

from deptry.reporters.text import COLORS
from tests.functional.utils import DEPTRY_WHEEL_DIRECTORY

if TYPE_CHECKING:
from collections.abc import Generator


@dataclass
class _BaseVenvFactory:
Expand Down

0 comments on commit 967286b

Please sign in to comment.