-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flask 3.0.1 breaks path-separated command line arguments #5391
Milestone
Comments
I can confirm that this bug was introduced in 3.0.1. In our case, we're using the versions
commandflask --app app:start run --debug --exclude-patterns "*/tests/*:*/venv/*:*/temp/*" traceback
|
6 tasks
Ah, this was because in Python 3.12, list comprehensions no longer execute in a separate hidden function scope. So no-arg |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In a minimal flask app, running
flask run --extra-files=
or using any other argument that internally usesSeparatedPathType
results inTypeError: super(type, obj): obj must be an instance or subtype of type
flask run --extra-files=a
Expected Behavior:
The server should start up.
Actual Behavior:
The command raises a
Type Error
and exits with code 1Full Traceback
Environment:
Output from
pip freeze
:Demo Repo: https://github.com/alexrudy/flask-3.0.1-cli-bug
The text was updated successfully, but these errors were encountered: