aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Flask/py3/flask/views.py
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-05-03 00:01:03 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-05-03 00:06:37 +0300
commit38934cfb0b963a0157cf16c13499977ac87f35b9 (patch)
tree124d141726b8a860761a75fe2b597eecce078ee7 /contrib/python/Flask/py3/flask/views.py
parent616419d508d3ee4a3b07a82e5cae5ab4544bd1e2 (diff)
downloadydb-38934cfb0b963a0157cf16c13499977ac87f35b9.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/Flask/py3/flask/views.py')
-rw-r--r--contrib/python/Flask/py3/flask/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/python/Flask/py3/flask/views.py b/contrib/python/Flask/py3/flask/views.py
index 1bd5c68b06..1dd560c62b 100644
--- a/contrib/python/Flask/py3/flask/views.py
+++ b/contrib/python/Flask/py3/flask/views.py
@@ -1,8 +1,8 @@
import typing as t
+from . import typing as ft
from .globals import current_app
from .globals import request
-from .typing import ResponseReturnValue
http_method_funcs = frozenset(
@@ -59,7 +59,7 @@ class View:
#: .. versionadded:: 0.8
decorators: t.List[t.Callable] = []
- def dispatch_request(self) -> ResponseReturnValue:
+ def dispatch_request(self) -> ft.ResponseReturnValue:
"""Subclasses have to override this method to implement the
actual view function code. This method is called with all
the arguments from the URL rule.
@@ -79,7 +79,7 @@ class View:
constructor of the class.
"""
- def view(*args: t.Any, **kwargs: t.Any) -> ResponseReturnValue:
+ def view(*args: t.Any, **kwargs: t.Any) -> ft.ResponseReturnValue:
self = view.view_class(*class_args, **class_kwargs) # type: ignore
return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
@@ -146,7 +146,7 @@ class MethodView(View, metaclass=MethodViewType):
app.add_url_rule('/counter', view_func=CounterAPI.as_view('counter'))
"""
- def dispatch_request(self, *args: t.Any, **kwargs: t.Any) -> ResponseReturnValue:
+ def dispatch_request(self, *args: t.Any, **kwargs: t.Any) -> ft.ResponseReturnValue:
meth = getattr(self, request.method.lower(), None)
# If the request method is HEAD and we don't have a handler for it