Skip to content
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

[pull] main from pallets:main #232

Merged
merged 9 commits into from
Dec 14, 2023
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Version 3.0.1
Unreleased

- Correct type for ``path`` argument to ``send_file``. :issue:`5230`
- Fix a typo in an error message for the ``flask run --key`` option. :pr:`5344`


Version 3.0.0
Expand Down
4 changes: 2 additions & 2 deletions docs/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ following example shows that process id 6847 is using port 5000.
TCP 127.0.0.1:5000 0.0.0.0:0 LISTENING 6847

macOS Monterey and later automatically starts a service that uses port
5000. To disable the service, go to System Preferences, Sharing, and
disable "AirPlay Receiver".
5000. You can choose to disable this service instead of using a different port by
searching for "AirPlay Receiver" in System Preferences and toggling it off.


Deferred Errors on Reload
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ source = ["src", "*/site-packages"]

[tool.mypy]
python_version = "3.8"
files = ["src/flask"]
files = ["src/flask", "tests/typing"]
show_error_codes = true
pretty = true
#strict = true
Expand Down
6 changes: 3 additions & 3 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ click==8.1.7
# via pip-tools
colorama==0.4.6
# via tox
cryptography==41.0.5
cryptography==41.0.7
# via -r typing.in
distlib==0.3.7
# via virtualenv
Expand All @@ -52,7 +52,7 @@ jinja2==3.1.2
# via sphinx
markupsafe==2.1.3
# via jinja2
mypy==1.6.1
mypy==1.7.1
# via -r typing.in
mypy-extensions==1.0.0
# via mypy
Expand Down Expand Up @@ -130,7 +130,7 @@ sphinxcontrib-qthelp==1.0.6
# via sphinx
sphinxcontrib-serializinghtml==1.1.9
# via sphinx
tox==4.11.3
tox==4.11.4
# via -r dev.in
types-contextvars==2.4.7.3
# via -r typing.in
Expand Down
4 changes: 2 additions & 2 deletions requirements/typing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#
cffi==1.16.0
# via cryptography
cryptography==41.0.5
cryptography==41.0.7
# via -r typing.in
mypy==1.6.1
mypy==1.7.1
# via -r typing.in
mypy-extensions==1.0.0
# via mypy
Expand Down
4 changes: 3 additions & 1 deletion src/flask/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,9 @@ def _validate_key(ctx, param, value):

if is_context:
raise click.BadParameter(
'When "--cert" is an SSLContext object, "--key is not used.', ctx, param
'When "--cert" is an SSLContext object, "--key" is not used.',
ctx,
param,
)

if not cert:
Expand Down
2 changes: 1 addition & 1 deletion src/flask/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def index():
return current_app.response_class()
if len(args) == 1:
args = args[0]
return current_app.make_response(args) # type: ignore
return current_app.make_response(args)


def url_for(
Expand Down