mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-25 10:14:05 +08:00
Bump Flask-Cors to 6.0.* (#14097)
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user