Content-Length: 304313 | pFad | https://github.com/python/typeshed/commit/ec8b6eca5ec0ae0699bba4ad3025f34135a6f1e0

F3 Bump Flask-Cors to 6.0.* (#14097) · python/typeshed@ec8b6ec · GitHub
Skip to content

Commit ec8b6ec

Browse files
authored
Bump Flask-Cors to 6.0.* (#14097)
1 parent 43ea05d commit ec8b6ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stubs/Flask-Cors/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "5.0.*"
1+
version = "6.0.*"
22
upstream_repository = "https://github.com/corydolphin/flask-cors"
33
# Requires a version of flask with a `py.typed` file
44
requires = ["Flask>=2.0.0"]

stubs/Flask-Cors/flask_cors/core.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections.abc import Iterable
22
from datetime import timedelta
33
from logging import Logger
4-
from re import Pattern
4+
from re import Match, Pattern
55
from typing import Any, Final, Literal, TypedDict, TypeVar, overload
66
from typing_extensions import TypeAlias
77

@@ -54,8 +54,8 @@ def probably_regex(maybe_regex: Pattern[str]) -> Literal[True]: ...
5454
@overload
5555
def probably_regex(maybe_regex: str) -> bool: ...
5656
def re_fix(reg: str) -> str: ...
57-
def try_match_any(inst: str, patterns: Iterable[str | Pattern[str]]) -> bool: ...
58-
def try_match(request_origen: str, maybe_regex: str | Pattern[str]) -> bool: ...
57+
def try_match_any_pattern(inst: str, patterns: Iterable[str | Pattern[str]], caseSensitive: bool = True) -> bool: ...
58+
def try_match_pattern(value: str, pattern: str | Pattern[str], caseSensitive: bool = True) -> bool | Match[str]: ...
5959
def get_cors_options(appInstance: flask.Flask | None, *dicts: _Options) -> _Options: ...
6060
def get_app_kwarg_dict(appInstance: flask.Flask | None = None) -> _Options: ...
6161
def flexible_str(obj: object) -> str | None: ...

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/typeshed/commit/ec8b6eca5ec0ae0699bba4ad3025f34135a6f1e0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy