dependabot[bot]
0dd4e7c7c5
Bump pre-commit from 2.12.1 to 2.13.0
...
Bumps [pre-commit](https://github.com/pre-commit/pre-commit ) from 2.12.1 to 2.13.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases )
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.12.1...v2.13.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-01 08:04:58 +00:00
Adrian Moennich
84f5e9c19e
Merge remote-tracking branch 'upstream/2.0.x'
2021-05-29 20:55:23 +02: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
66d6d75d99
Merge branch '2.0.x'
2021-05-21 08:56:18 -07: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
10e22202dd
Merge branch '2.0.x'
2021-05-20 21:05:59 -07: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
David Lord
a774d25f78
Merge pull request #4066 from dannysepler/pathlib-in-test
...
Add pathlib in cli tests
2021-05-17 08:51:30 -07:00
Danny Sepler
92c4d72931
Add pathlib in cli tests
2021-05-17 08:46:36 -07:00
David Lord
2c2b064184
Merge pull request #4063 from pgjones/bp-fix
...
Bp fix
2021-05-17 07:56:20 -07:00
pgjones
f8157eca6f
Fix nested blueprint url_prefix
...
This fixes the case where the blueprint is registered with a
url_prefix but any child blueprints have no prefixes.
2021-05-17 15:47:25 +01:00
David Lord
494ce0d780
Merge pull request #4057 from rafaVls/unused-escape-import
...
Unused escape import
2021-05-14 13:54:21 -07:00
Rafael Aviles
da7ddcaf80
Use escape function in return statement for username and subpath.
2021-05-14 13:23:34 -07:00
David Lord
ed1b3c77bb
Merge pull request #4056 from pallets/converter-session
...
converters have access to session
2021-05-14 08:23:44 -07:00
David Lord
5eb80d163b
Merge pull request #4055 from pallets/converter-session
...
converters have access to session
2021-05-14 08:17:37 -07:00
David Lord
bd3a8b71f8
converters have access to session
2021-05-14 08:11:09 -07:00
David Lord
7a1d921926
Merge branch '2.0.x'
2021-05-13 18:47:43 -07:00
David Lord
919966dd0e
Merge branch '1.1.x' into 2.0.x
2021-05-13 18:47:06 -07:00
David Lord
50b19f54a1
Merge pull request #4051 from pallets/release-1.1.4
...
release version 1.1.4
2021-05-13 18:44:46 -07:00