Skip to content

Commit 6b907c1

Browse files
Apply suggestions from code review
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
1 parent b129373 commit 6b907c1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

stubs/Flask-Cors/flask_cors/core.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ _MultiDict: TypeAlias = Any # werkzeug is not part of typeshed
1313
@type_check_only
1414
class _Options(TypedDict, total=False):
1515
resources: dict[str, dict[str, Any]] | list[str] | str | None
16-
origins: str | Pattern[str] | Iterable[str | Pattern[str]] | None
17-
methods: str | list[str] | None
18-
expose_headers: str | list[str] | None
19-
allow_headers: str | list[str] | None
16+
origins: Iterable[str | Pattern[str]]
17+
methods: str | list[str] | None
18+
expose_headers: str | list[str] | None
19+
allow_headers: Iterable[str | Pattern[str]]
2020
supports_credentials: bool | None
2121
max_age: timedelta | int | str | None
2222
send_wildcard: bool | None

stubs/Flask-Cors/flask_cors/extension.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CORS:
1414
app: flask.Flask | flask.Blueprint | None = None,
1515
*,
1616
resources: dict[str, dict[str, Any]] | list[str] | str | None = ...,
17-
origins: str | Pattern[str] | Iterable[str | Pattern[str]] | None = ...,
17+
origins: str | Pattern[str] | Iterable[str | Pattern[str]] = ...,
1818
methods: str | list[str] | None = ...,
1919
expose_headers: str | list[str] | None = ...,
2020
allow_headers: str | list[str] | None = ...,

0 commit comments

Comments
 (0)