Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type hinting compatibility for 3.8 #311

Merged
merged 1 commit into from
Mar 5, 2025
Merged
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
4 changes: 2 additions & 2 deletions bumpversion/scm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re
from dataclasses import asdict, dataclass, field
from pathlib import Path
from typing import TYPE_CHECKING, Any, MutableMapping, Optional, Protocol
from typing import TYPE_CHECKING, Any, List, MutableMapping, Optional, Protocol

from bumpversion.ui import get_indented_logger
from bumpversion.utils import Pathlike, extract_regex_flags
Expand All @@ -27,7 +27,7 @@ class SCMConfig:
parse_pattern: str
tag_message: Optional[str] = None
commit_args: Optional[str] = None
moveable_tags: list[str] = field(default_factory=list)
moveable_tags: List[str] = field(default_factory=list)

def get_version_from_tag(self, tag: str) -> Optional[str]:
"""Return the version from a tag."""
Expand Down
Loading