Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dependabot wants to merge4 commits intomaster
base:master
Choose a base branch
Loading
fromdependabot/pip/mypy-1.17.0
Open
Show file tree
Hide file tree
Changes fromall 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionpyproject.toml
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionssrc/semantic_release/commit_parser/_base.py
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionssrc/semantic_release/helpers.py
View file
Open in desktop
Original file line numberDiff line numberDiff 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 importAny,Iterable, Sequence


number_pattern = regexp(r"(?P<prefix>\S*?)(?P<number>\d[\d,]*)\b")
Expand DownExpand 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

[8]ページ先頭

©2009-2025 Movatter.jp