Age | Commit message (Collapse) | Author |
|
Version 2.0.2
-------------
Released 2021-10-04
- Fix type annotation for ``teardown_*`` methods. :issue:`4093`
- Fix type annotation for ``before_request`` and ``before_app_request``
decorators. :issue:`4104`
- Fixed the issue where typing requires template global
decorators to accept functions with no arguments. :issue:`4098`
- Support View and MethodView instances with async handlers. :issue:`4112`
- Enhance typing of ``app.errorhandler`` decorator. :issue:`4095`
- Fix registering a blueprint twice with differing names. :issue:`4124`
- Fix the type of ``static_folder`` to accept ``pathlib.Path``.
:issue:`4150`
- ``jsonify`` handles ``decimal.Decimal`` by encoding to ``str``.
:issue:`4157`
- Correctly handle raising deferred errors in CLI lazy loading.
:issue:`4096`
- The CLI loader handles ``**kwargs`` in a ``create_app`` function.
:issue:`4170`
- Fix the order of ``before_request`` and other callbacks that trigger
before the view returns. They are called from the app down to the
closest nested blueprint. :issue:`4229`
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
|
|
This is the result of automated script (0.9.1) conversion:
oe-core/scripts/contrib/convert-overrides.py .
converting the metadata to use ":" as the override character instead of "_".
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Extend RDEPENDS and add python3-profile to them.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
|
|
Upgrade to release 2.0.1:
- Re-add the filename parameter in send_from_directory. The
filename parameter has been renamed to path, the old name is
deprecated.
- Mark top-level names as exported so type checking understands
imports in user projects.
- Fix type annotation for g and inform mypy that it is a namespace
object that has arbitrary attributes.
- Fix some types that weren’t available in Python 3.6.0.
- Improve typing for send_file, send_from_directory, and
get_send_file_max_age.
- Show an error when a blueprint name contains a dot. The . has
special meaning, it is used to separate (nested) blueprint names
and the endpoint name.
- Combine URL prefixes when nesting blueprints that were created
with a url_prefix value.
- Roll back a change to the order that URL matching was done. The
URL is again matched after the session is loaded, so the session
is available in custom URL converters.
- Re-add deprecated Config.from_json, which was accidentally
removed early.
- Improve typing for some functions using Callable in their type
signatures, focusing on decorator factories.
- Nested blueprints are registered with their dotted name. This
allows different blueprints with the same name to be nested at
different locations.
- register_blueprint takes a name option to change the (pre-dotted)
name the blueprint is registered with. This allows the same
blueprint to be registered multiple times with unique names for
url_for. Registering the same blueprint with the same name
multiple times is deprecated. #1091
- Improve typing for stream_with_context.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
|