David Lord
aaac416e18
Merge pull request #4155 from yuxiaoy1/patch-1
...
Fix bad link in templating docs
2021-06-20 06:45:54 -07:00
David Lord
15c0710d37
Merge pull request #4156 from yuxiaoy1/patch-4
...
Improve the code example in testing docs
2021-06-20 06:45:37 -07:00
Frank Yu
4e4fdd853f
Update testing.rst
2021-06-18 22:18:15 +08:00
Frank Yu
7945f32402
Update templating.rst
2021-06-18 20:15:02 +08:00
Frank Yu
2b794fd1ca
Update docs of rendering templates ( #4153 )
...
* Update docs of rendering templates
* Improve the grammar
Co-authored-by: Grey Li <withlihui@gmail.com>
2021-06-18 10:10:29 +08:00
Grey Li
ee96cf8aa8
Merge pull request #4147 from greyli/update-contributing-guide
...
Update contributing guide
2021-06-15 08:49:29 +08:00
pgjones
e9525a7a16
Fix registering a blueprint twice with differing names
...
Previously the blueprint recorded aspects (before request, after
request etc) would only be added to the app if it was the first
registration of the blueprint instance. However only the record-once
aspects (app-before requests, app-after request) should be added once
on registration of the instance, whereas everything else should be
added on every unique name registration. This ensures that these
trigger under the new name as well as the old.
2021-06-14 17:18:47 +00:00
Grey Li
db5432b7d9
Improve the contributing guide
2021-06-14 14:20:04 +08:00
David Lord
33f1adcbf5
Merge pull request #4142 from Hugo0/patch-1
...
Update celery.rst
2021-06-08 10:06:35 -07:00
Hugo Montenegro
89652cece5
Update celery.rst
...
small typo
2021-06-08 19:01:07 +02:00
pgjones
6e2bd47c59
Improve the changelog entry
...
The fix to the teardown_request also applies to all teardown_*
methods.
2021-06-06 11:09:03 +01:00
Pascal Corpet
82c2dc4c5c
improve typing for app.errorhandler decorator
2021-06-01 19:25:27 +01:00
pre-commit-ci[bot]
127b90b643
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-06-01 18:08:19 +00:00
Miguel Grinberg
ca2788ead6
Support View and MethodView instances with async handlers
2021-06-01 18:08:19 +00:00
laggardkernel
05f5ef5fdd
Optimize loop in Flask._find_error_handler()
2021-06-01 15:50:20 +00:00
laggardkernel
bddc916b1d
Update doc about minimal Python version for async support
2021-05-30 11:03:49 +00:00
default-303
6ca89fdfe7
Fix typing of jinja decorators ( #4109 )
2021-05-29 20:54:35 +02:00
Marat Sharafutdinov
28f4e7464a
Fix type annotation for before_request and before_app_request decorators
2021-05-25 18:29:52 +00:00
Pascal Corpet
81c637ff1d
improve typing for teardown_request
2021-05-24 19:28:57 +00:00
Grey Li
5f4a586ede
Merge pull request #4100 from greyli/fix-typo
...
Fix typo in docs/tutorial/index.rst
2021-05-24 16:36:56 +08:00
Grey Li
6cdc3eef15
Fix typo in docs/tutorial/index.rst
2021-05-24 16:33:02 +08:00
David Lord
af4a5b841e
start version 2.0.2.dev0
2021-05-21 08:55:31 -07:00
David Lord
9e6c6e3b50
Merge pull request #4091 from pallets/release-2.0.1
...
release version 2.0.1
2021-05-21 08:52:24 -07:00
David Lord
e681adb826
release version 2.0.1
2021-05-21 08:50:31 -07:00
David Lord
67272bee1b
Merge pull request #4090 from pallets/stream-type
...
improve typing for `stream_with_context`
2021-05-21 08:48:02 -07:00
David Lord
d883eb2ab5
improve typing for stream_with_context
2021-05-21 08:42:44 -07:00
David Lord
617033403f
Merge pull request #4087 from greyli/gitignore
...
Add venv and .venv to .gitignore
2021-05-21 07:10:50 -07:00
David Lord
24a2dd4f2e
Merge pull request #4074 from pgjones/bp
...
blueprints are registered with nested names, can change registered name
2021-05-21 07:09:02 -07:00
pgjones
80836ecf64
Fix blueprint renaming
...
This ensures that if a blueprint is renamed at the time of
registration that name is used when constructing endpoints, as
expected.
2021-05-21 15:04:30 +01:00
pgjones
b8f5c161f8
Fix blueprint self registration
...
By raising a ValueError if attempted. I don't see a use case that
makes this worth supporting.
2021-05-21 15:04:30 +01:00
David Lord
020ac5f2d9
warn when registering same blueprint with same name
2021-05-21 15:04:30 +01:00
David Lord
4907999188
changelog for blueprint registered name
2021-05-21 15:04:30 +01:00
David Lord
c6d18023d3
cache blueprint path calculation
2021-05-21 15:04:18 +01:00
pgjones
b6835d2144
Bugfix allow blueprints to be registered with a different name
...
This allows the same blueprint to be registered multiple times at the
same level, but with differing url_prefixes and names.
2021-05-21 15:04:18 +01:00
pgjones
3f36415bf5
Bugfix blueprint naming
...
Following discussions for Flask we've decided to name blueprints based
on how they are registered. This allows for two different blueprints
to have the same self-name as long as they are registered in different
nested positions. This helps users choose better blueprint names.
2021-05-21 15:04:18 +01:00
pgjones
7318136ed9
Fix blueprint nested url_prefix
...
This ensures that the url_prefix is correctly applied, no matter if
set during the registration override or when constructing the
blueprint.
2021-05-21 15:04:18 +01:00
Grey Li
13ee3c63cf
Fix view decorators docs
2021-05-21 12:11:03 +00:00
Grey Li
9a54c7d66e
Add venv and .venv to .gitignore
2021-05-21 16:58:58 +08:00
Alex Hedges
7fb6d79770
Update CHANGES.rst
2021-05-21 08:09:05 +00:00
Alex Hedges
f6f1665acb
Improve decorator factory type signatures
...
These changes are required to preserve the type signatures of the
created decorators.
2021-05-21 08:09:05 +00:00
Alex Hedges
709f701719
Use TypeVar for setupmethod()
...
TypeVar is needed to preserve function signatures. The type cast for
update_wrapper is needed because wapper_func can not use the full
signature that f does.
2021-05-21 08:09:05 +00:00
Alex Hedges
9841b21f4b
Make add_url_rule() signature consistent
...
This caused a mypy error when I was making another typing improvement,
so I am fixing it before committing my other changes.
2021-05-21 08:09:05 +00:00
Oleksis Fraga Menéndez
c623015348
Add update pip and setuptools section ( #4061 )
...
* Add update pip and setuptools section
* Simplify the command to upgrade pip
Co-authored-by: Grey Li <withlihui@gmail.com>
2021-05-21 12:33:09 +08:00
David Lord
ffe6216568
Merge pull request #4084 from pallets/update-theme
...
Update theme
2021-05-20 21:05:36 -07:00
David Lord
29c8be4604
update pallets and sphinx requirements
2021-05-20 21:03:33 -07:00
David Lord
5ff1f02e94
update pallets-sphinx-themes
2021-05-20 21:03:02 -07:00
David Lord
68417793eb
Merge pull request #4081 from pallets/config-json
...
re-add deprecated `Config.from_json` method
2021-05-20 13:52:09 -07:00
David Lord
58e5ba2980
re-add deprecated Config.from_json method
2021-05-20 13:50:13 -07:00
David Lord
3282b39c3c
Merge pull request #4072 from pallets/typeshed
...
use _typeshed.wsgi instead of wsgiref.types
2021-05-17 16:06:10 -07:00
David Lord
3489d44b80
use _typeshed.wsgi instead of wsgiref.types
2021-05-17 16:03:12 -07:00