Skip to content

Commit 7280ba1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent db2b65c commit 7280ba1

File tree

24 files changed

+26
-12
lines changed

24 files changed

+26
-12
lines changed

connexion/apps/abstract.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module defines an AbstractApp, which defines a standardized user interface for a Connexion
33
application.
44
"""
5+
56
import abc
67
import pathlib
78
import typing as t

connexion/apps/flask.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module defines a FlaskApp, a Connexion application to wrap a Flask application.
33
"""
4+
45
import functools
56
import pathlib
67
import typing as t

connexion/decorators/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module defines decorators which Connexion uses to wrap user provided view functions.
33
"""
4+
45
from .main import ( # noqa
56
ASGIDecorator,
67
FlaskDecorator,

connexion/decorators/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class WSGIDecorator(BaseDecorator):
100100
and provides Flask datastructures to the view function. This works for any WSGI app, since
101101
we get the request via the connexion context provided by WSGI middleware.
102102
103-
This decorator does not parse responses, but passes them directly to the WSGI App."""
103+
This decorator does not parse responses, but passes them directly to the WSGI App.
104+
"""
104105

105106
framework = FlaskFramework
106107

@@ -152,7 +153,8 @@ class ASGIDecorator(BaseDecorator):
152153
and provides Starlette datastructures to the view function. This works for any ASGI app, since
153154
we get the request via the connexion context provided by ASGI middleware.
154155
155-
This decorator does not parse responses, but passes them directly to the ASGI App."""
156+
This decorator does not parse responses, but passes them directly to the ASGI App.
157+
"""
156158

157159
framework = StarletteFramework
158160

connexion/decorators/parameter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module defines a decorator to convert request parameters to arguments for the view function.
33
"""
4+
45
import abc
56
import asyncio
67
import builtins

connexion/decorators/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _update_headers(
118118

119119
@staticmethod
120120
def _unpack_handler_response(
121-
handler_response: t.Union[str, bytes, dict, list, tuple]
121+
handler_response: t.Union[str, bytes, dict, list, tuple],
122122
) -> t.Tuple[t.Union[str, bytes, dict, list, None], t.Optional[int], dict]:
123123
"""Unpack the handler response into data, status_code and headers.
124124

connexion/frameworks/flask.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module defines functionality specific to the Flask framework.
33
"""
4+
45
import functools
56
import random
67
import re

connexion/lifecycle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module defines interfaces for requests and responses used in Connexion for authentication,
33
validation, serialization, etc.
44
"""
5+
56
import typing as t
67
from collections import defaultdict
78

connexion/middleware/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""The ContextMiddleware creates a global context based the scope. It should be last in the
22
middleware stack, so it exposes the scope passed to the application"""
3+
34
from starlette.types import ASGIApp, Receive, Scope, Send
45

56
from connexion.context import _context, _operation, _receive, _scope

connexion/middleware/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
def connexion_wrapper(
2424
handler: t.Callable[
2525
[ConnexionRequest, Exception], MaybeAwaitable[ConnexionResponse]
26-
]
26+
],
2727
) -> t.Callable[[StarletteRequest, Exception], t.Awaitable[StarletteResponse]]:
2828
"""Wrapper that translates Starlette requests to Connexion requests before passing
2929
them to the error handler, and translates the returned Connexion responses to

0 commit comments

Comments
 (0)