Skip to content
Myr

Merge branch '2.3.x'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parents d0bf462, 38f02e0 · Browse files · 9 files+26 added−25 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+26 added−25 removed

  • other:+26 added−25 removed

9 files+26 added−25 removed

modified:docs/patterns/javascript.rst+2 added-2 removed
123 unmodified lines
124125.. code-block:: javascript126127 let data = new FormData()128 data.append("name": "Flask Room")129 data.append("description": "Talk about Flask here.")128 data.append("name", "Flask Room")129 data.append("description", "Talk about Flask here.")130 fetch(room_url, {131 "method": "POST",132 "body": data,133 }).then(...)
126 unmodified lines
modified:docs/config.rst+2 added-2 removed
408 unmodified lines
409from a TOML file:410411.. code-block:: python412413 import toml414 app.config.from_file("config.toml", load=toml.load)413 import tomllib414 app.config.from_file("config.toml", load=tomllib.load, text=False)415416Or from a JSON file:417418.. code-block:: python
303 unmodified lines
modified:requirements/dev.txt+7 added-7 removed
8 unmodified lines
9-r tests.txt10-r typing.txt11build==0.10.012 # via pip-tools13cachetools==5.3.013cachetools==5.3.114 # via tox15cfgv==3.3.116 # via pre-commit17chardet==5.1.0
9 unmodified lines
27filelock==3.12.028 # via29 # tox30 # virtualenv31identify==2.5.2331identify==2.5.2432 # via pre-commit33nodeenv==1.7.033nodeenv==1.8.034 # via pre-commit35pip-compile-multi==2.6.235pip-compile-multi==2.6.336 # via -r requirements/dev.in37pip-tools==6.13.038 # via pip-compile-multi39platformdirs==3.5.039platformdirs==3.5.140 # via41 # tox42 # virtualenv43pre-commit==3.3.143pre-commit==3.3.244 # via -r requirements/dev.in45pyproject-api==1.5.146 # via tox47pyproject-hooks==1.0.0
1 unmodified line
49pyyaml==6.050 # via pre-commit51toposort==1.1052 # via pip-compile-multi53tox==4.5.153tox==4.5.254 # via -r requirements/dev.in55virtualenv==20.23.056 # via57 # pre-commit
7 unmodified lines
modified:requirements/docs.txt+3 added-3 removed
7 unmodified lines
8alabaster==0.7.139 # via sphinx10babel==2.12.111 # via sphinx12certifi==2022.12.712certifi==2023.5.713 # via requests14charset-normalizer==3.1.015 # via requests16docutils==0.17.1
17 unmodified lines
34pygments==2.15.135 # via36 # sphinx37 # sphinx-tabs38requests==2.29.038requests==2.31.039 # via sphinx40snowballstemmer==2.2.041 # via sphinx42sphinx==4.5.0
20 unmodified lines
63sphinxcontrib-qthelp==1.0.364 # via sphinx65sphinxcontrib-serializinghtml==1.1.566 # via sphinx67urllib3==1.26.1567urllib3==2.0.268 # via requests
modified:requirements/tests.txt+1 added-1 removed
3 unmodified lines
4# To update, run:5#6# pip-compile-multi7#8asgiref==3.6.08asgiref==3.7.29 # via -r requirements/tests.in10iniconfig==2.0.011 # via pytest12packaging==23.1
7 unmodified lines
modified:requirements/typing.txt+4 added-4 removed
5 unmodified lines
6# pip-compile-multi7#8cffi==1.15.19 # via cryptography10cryptography==40.0.210cryptography==41.0.011 # via -r requirements/typing.in12mypy==1.2.012mypy==1.3.013 # via -r requirements/typing.in14mypy-extensions==1.0.015 # via mypy16pycparser==2.21
1 unmodified line
18types-contextvars==2.4.7.219 # via -r requirements/typing.in20types-dataclasses==0.6.621 # via -r requirements/typing.in22types-setuptools==67.7.0.122types-setuptools==67.8.0.023 # via -r requirements/typing.in24typing-extensions==4.5.024typing-extensions==4.6.225 # via mypy
modified:src/flask/config.py+5 added-3 removed
70 unmodified lines
71 the application's :attr:`~flask.Flask.root_path`.72 :param defaults: an optional dictionary of default values73 """7475 def __init__(self, root_path: str, defaults: dict | None = None) -> None:75 def __init__(76 self, root_path: str | os.PathLike, defaults: dict | None = None77 ) -> None:78 super().__init__(defaults or {})79 self.root_path = root_path8081 def from_envvar(self, variable_name: str, silent: bool = False) -> bool:
83 unmodified lines
165 current[tail] = value166167 return True168167 def from_pyfile(self, filename: str, silent: bool = False) -> bool:169 def from_pyfile(self, filename: str | os.PathLike, silent: bool = False) -> bool:170 """Updates the values in the config from a Python file. This function171 behaves as if the file was imported as module with the172 :meth:`from_object` function.173
60 unmodified lines
234 self[key] = getattr(obj, key)235236 def from_file(237 self,236 filename: str,238 filename: str | os.PathLike,239 load: t.Callable[[t.IO[t.Any]], t.Mapping],240 silent: bool = False,241 text: bool = True,242 ) -> bool:
105 unmodified lines
modified:.pre-commit-config.yaml+2 added-2 removed
modified:pyproject.toml-1 removed
2 unmodified lines
3description = "A simple framework for building complex web applications."4readme = "README.rst"5license = {text = "BSD-3-Clause"}6maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]7authors = [{name = "Armin Ronacher", email = "armin.ronacher@active-4.com"}]7classifiers = [8 "Development Status :: 5 - Production/Stable",9 "Environment :: Web Environment",10 "Framework :: Flask",
86 unmodified lines