Skip to content

Commit

Permalink
Fixed bad imports
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 26, 2023
1 parent 7d05414 commit 5c86d51
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion bumpversion/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
from pydantic_settings import BaseSettings, SettingsConfigDict

from bumpversion.ui import get_indented_logger
from bumpversion.versioning.models import VersionComponentConfig # NOQA: TCH001

if TYPE_CHECKING:
from bumpversion.scm import SCMInfo
from bumpversion.version_part import VersionConfig
from bumpversion.versioning.models import VersionComponentConfig, VersionSpec
from bumpversion.versioning.models import VersionSpec

logger = get_indented_logger(__name__)

Expand Down
3 changes: 1 addition & 2 deletions bumpversion/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import glob
from typing import Dict, List

from exceptions import BumpVersionError

from bumpversion.config.models import FileChange
from bumpversion.exceptions import BumpVersionError
from bumpversion.versioning.models import VersionComponentConfig


Expand Down
4 changes: 1 addition & 3 deletions bumpversion/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
from pathlib import Path
from typing import Dict, List, MutableMapping, Optional

from versioning.models import VersionComponentConfig

from bumpversion.config.models import FileChange
from bumpversion.exceptions import VersionNotFoundError
from bumpversion.ui import get_indented_logger
from bumpversion.version_part import VersionConfig
from bumpversion.versioning.models import Version
from bumpversion.versioning.models import Version, VersionComponentConfig

logger = get_indented_logger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_configuredfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Tests for the ConfiguredFile class."""
from bumpversion.files import ConfiguredFile, FileChange
from bumpversion.version_part import VersionConfig
from versioning.models import VersionComponentConfig
from bumpversion.versioning.models import VersionComponentConfig


class TestConfiguredFile:
Expand Down

0 comments on commit 5c86d51

Please sign in to comment.