FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build(deps): bump mypy from 1.16.1 to 1.17.0 by dependabot[bot] · Pull Request #1297 · python-semantic-release/python-semantic-release · GitHub

Repository navigation

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) .toml  (1) .yaml  (1) All 3 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ repos:
name: ruff (format)

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.16.1"
rev: "v1.17.0"
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ dev = [
"ruff == 0.6.1"
]
mypy = [
"mypy == 1.16.1",
"mypy == 1.17.0",
"types-Deprecated ~= 1.2",
"types-requests ~= 2.32.0",
"types-pyyaml ~= 6.0",
Expand Down
4 changes: 2 additions & 2 deletions src/semantic_release/commit_parser/_base.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from __future__ import annotations

from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any, Generic, TypeVar
from typing import TYPE_CHECKING, Any, Dict, Generic, TypeVar, Union

from semantic_release.commit_parser.token import ParseResultType

if TYPE_CHECKING: # pragma: no cover
from git.objects.commit import Commit


class ParserOptions(dict):
class ParserOptions(Dict[Union[str, int, float], Any]):
"""
ParserOptions should accept the keyword arguments they are interested in
from configuration and process them as desired, ultimately creating attributes
Expand Down
6 changes: 3 additions & 3 deletions src/semantic_release/helpers.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
from functools import lru_cache, reduce, wraps
from pathlib import Path, PurePosixPath
from re import IGNORECASE, compile as regexp
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Sequence, TypeVar
from typing import TYPE_CHECKING, Callable, NamedTuple, TypeVar
from urllib.parse import urlsplit

from semantic_release.globals import logger

if TYPE_CHECKING: # pragma: no cover
from logging import Logger
from re import Pattern
from typing import Iterable
from typing import Any, Iterable, Sequence


number_pattern = regexp(r"(?P<prefix>\S*?)(?P<number>\d[\d,]*)\b")
Expand Down Expand Up @@ -94,7 +94,7 @@ def text_reducer(text: str, filter_pair: tuple[Pattern[str], str]) -> str:


def validate_types_in_sequence(
sequence: Sequence, types: type | tuple[type, ...]
sequence: Sequence[Any], types: type | tuple[type, ...]
) -> bool:
"""Validate that all elements in a sequence are of a specific type"""
return all(isinstance(item, types) for item in sequence)
Expand Down
Loading

Back | FazBrowse Home | New Git URL