8000 Bump Flask-Cors to 6.0.* by donBarbos · Pull Request #14097 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Bump Flask-Cors to 6.0.* #14097

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

Merged
merged 3 commits into from
May 19, 2025
Merged
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 stubs/Flask-Cors/METADATA.toml
Original file line number Diff line number Diff line change
@@ -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"]
6 changes: 3 additions & 3 deletions stubs/Flask-Cors/flask_cors/core.pyi
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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: ...
Expand Down
0