Skip to content

[Flask-Cors] Update type annotation for origins to also allow Pattern#15825

Open
wvanbergen wants to merge 2 commits into
python:mainfrom
wvanbergen:wvanbergen/Flask-Cors
Open

[Flask-Cors] Update type annotation for origins to also allow Pattern#15825
wvanbergen wants to merge 2 commits into
python:mainfrom
wvanbergen:wvanbergen/Flask-Cors

Conversation

@wvanbergen
Copy link
Copy Markdown

@wvanbergen wvanbergen commented May 23, 2026

Small fix: this updates the type annotation for the origins argument for CORS() and CORS.init_app to also accept Patterns. Also, use Iterable rather than list to not cause compatibility issues.

@github-actions

This comment has been minimized.

@wvanbergen wvanbergen force-pushed the wvanbergen/Flask-Cors branch from ed1a6d6 to 555f3da Compare May 23, 2026 10:13
@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant