Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/server/petstore/python-flask/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4"
swagger-ui-bundle >= 0.0.2
python_dateutil >= 2.6.0
setuptools >= 21.0.0
Flask == 2.1.1
Flask == 3.1.3
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Flask 3.1.x requires Python 3.9+, but this sample documents Python 3.5.2+ and already has 3.4/3.5-specific pins. Bumping to Flask 3.1.3 without a version marker will cause installs to fail on the older Python versions this sample advertises. Gate the Flask version by Python version and/or update the documented minimum Python version.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At samples/server/petstore/python-flask/requirements.txt, line 13:

<comment>Flask 3.1.x requires Python 3.9+, but this sample documents Python 3.5.2+ and already has 3.4/3.5-specific pins. Bumping to Flask 3.1.3 without a version marker will cause installs to fail on the older Python versions this sample advertises. Gate the Flask version by Python version and/or update the documented minimum Python version.</comment>

<file context>
@@ -10,4 +10,4 @@ werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4"
 python_dateutil >= 2.6.0
 setuptools >= 21.0.0
-Flask == 2.1.1
+Flask == 3.1.3
</file context>
Fix with Cubic

Loading