update requirements (#3823)

This commit is contained in:
David Lord 2020-11-01 05:30:02 -08:00 committed by GitHub
parent 3b57c19e3b
commit 373f0dd82e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 33 additions and 35 deletions

View file

@ -451,16 +451,14 @@ class Blueprint(Scaffold):
return decorator
def app_url_value_preprocessor(self, f):
"""Same as :meth:`url_value_preprocessor` but application wide.
"""
"""Same as :meth:`url_value_preprocessor` but application wide."""
self.record_once(
lambda s: s.app.url_value_preprocessors.setdefault(None, []).append(f)
)
return f
def app_url_defaults(self, f):
"""Same as :meth:`url_defaults` but application wide.
"""
"""Same as :meth:`url_defaults` but application wide."""
self.record_once(
lambda s: s.app.url_default_functions.setdefault(None, []).append(f)
)

View file

@ -32,8 +32,7 @@ def setupmethod(f):
class Scaffold(_PackageBoundObject):
"""A common base for class Flask and class Blueprint.
"""
"""A common base for class Flask and class Blueprint."""
#: Skeleton local JSON decoder class to use.
#: Set to ``None`` to use the app's :class:`~flask.app.Flask.json_encoder`.