Skip to content

build(deps): bump mypy from 1.16.1 to 1.17.0 #1297

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
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
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
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
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy