File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
stubs/Flask-Cors/flask_cors Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
from collections .abc import Callable
2
2
from datetime import timedelta
3
3
from logging import Logger
4
- from typing import Any
4
+ from typing import Any , Iterable , Pattern
5
5
from typing_extensions import ParamSpec
6
6
7
7
_P = ParamSpec ("_P" )
@@ -10,10 +10,10 @@ LOG: Logger
10
10
11
11
def cross_origin (
12
12
* args : Any ,
13
- origins : str | list [str ] | None = ...,
13
+ origins : str | Pattern [str ] | Iterable [ str | Pattern [ str ] ] | None = ...,
14
14
methods : str | list [str ] | None = ...,
15
15
expose_headers : str | list [str ] | None = ...,
16
- allow_headers : str | list [str ] | None = ...,
16
+ allow_headers : str | Pattern [str ] | Iterable [ str | Pattern [ str ] ] | None = ...,
17
17
supports_credentials : bool | None = ...,
18
18
max_age : timedelta | int | str | None = ...,
19
19
send_wildcard : bool | None = ...,
You can’t perform that action at this time.
0 commit comments