Bump Flask-Cors to 6.0.* (#14097)

This commit is contained in:
Semyon Moroz
2025-05-19 08:46:31 +00:00
committed by GitHub
parent 43ea05d464
commit ec8b6eca5e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
version = "5.0.*"
version = "6.0.*"
upstream_repository = "https://github.com/corydolphin/flask-cors"
# Requires a version of flask with a `py.typed` file
requires = ["Flask>=2.0.0"]
+3 -3
View File
@@ -1,7 +1,7 @@
from collections.abc import Iterable
from datetime import timedelta
from logging import Logger
from re import Pattern
from re import Match, Pattern
from typing import Any, Final, Literal, TypedDict, TypeVar, overload
from typing_extensions import TypeAlias
@@ -54,8 +54,8 @@ def probably_regex(maybe_regex: Pattern[str]) -> Literal[True]: ...
@overload
def probably_regex(maybe_regex: str) -> bool: ...
def re_fix(reg: str) -> str: ...
def try_match_any(inst: str, patterns: Iterable[str | Pattern[str]]) -> bool: ...
def try_match(request_origin: str, maybe_regex: str | Pattern[str]) -> bool: ...
def try_match_any_pattern(inst: str, patterns: Iterable[str | Pattern[str]], caseSensitive: bool = True) -> bool: ...
def try_match_pattern(value: str, pattern: str | Pattern[str], caseSensitive: bool = True) -> bool | Match[str]: ...
def get_cors_options(appInstance: flask.Flask | None, *dicts: _Options) -> _Options: ...
def get_app_kwarg_dict(appInstance: flask.Flask | None = None) -> _Options: ...
def flexible_str(obj: object) -> str | None: ...