Skip to content

Commit 372145e

Browse files
authored
Merge pull request #769 from python-openapi/dependabot/pip/black-24.1.1
Bump black from 23.11.0 to 24.1.1
2 parents c38cbab + efd4f62 commit 372145e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+130
-100
lines changed

openapi_core/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core module"""
2+
23
from openapi_core.app import OpenAPI
34
from openapi_core.configurations import Config
45
from openapi_core.shortcuts import unmarshal_apicall_request

openapi_core/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core app module"""
2+
23
from pathlib import Path
34
from typing import Optional
45

openapi_core/contrib/aiohttp/requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""OpenAPI core contrib aiohttp requests module"""
2+
23
from __future__ import annotations
34

45
from aiohttp import web
56

67
from openapi_core.datatypes import RequestParameters
78

89

9-
class Empty:
10-
...
10+
class Empty: ...
1111

1212

1313
_empty = Empty()

openapi_core/contrib/django/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core contrib django module"""
2+
23
from openapi_core.contrib.django.requests import DjangoOpenAPIRequest
34
from openapi_core.contrib.django.responses import DjangoOpenAPIResponse
45

openapi_core/contrib/django/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core contrib django handlers module"""
2+
23
from typing import Any
34
from typing import Callable
45
from typing import Dict

openapi_core/contrib/django/middlewares.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core contrib django middlewares module"""
2+
23
import warnings
34
from typing import Callable
45

openapi_core/contrib/django/requests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core contrib django requests module"""
2+
23
import re
34
from typing import Optional
45

openapi_core/contrib/django/responses.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core contrib django responses module"""
2+
23
from itertools import tee
34

45
from django.http.response import HttpResponse

openapi_core/contrib/falcon/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core contrib falcon handlers module"""
2+
23
from json import dumps
34
from typing import Any
45
from typing import Dict

openapi_core/contrib/falcon/middlewares.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""OpenAPI core contrib falcon middlewares module"""
2+
23
from typing import Any
34
from typing import Type
45
from typing import Union
@@ -24,9 +25,9 @@
2425

2526
class FalconOpenAPIMiddleware(FalconIntegration):
2627
valid_request_handler_cls = FalconOpenAPIValidRequestHandler
27-
errors_handler_cls: Type[
28+
errors_handler_cls: Type[FalconOpenAPIErrorsHandler] = (
2829
FalconOpenAPIErrorsHandler
29-
] = FalconOpenAPIErrorsHandler
30+
)
3031

3132
def __init__(
3233
self,

0 commit comments

Comments
 (0)