Skip to content

Commit 0dd125f

Browse files
authored
Merge pull request #1095 from python-openapi/dependabot/pip/black-26.1.0
Bump black from 25.11.0 to 26.1.0
2 parents c53d136 + 117ef63 commit 0dd125f

File tree

10 files changed

+116
-183
lines changed

10 files changed

+116
-183
lines changed

openapi_core/app.py

Lines changed: 60 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,15 @@ def __init__(
123123
self,
124124
spec: Annotated[
125125
SchemaPath,
126-
Doc(
127-
"""
126+
Doc("""
128127
OpenAPI specification schema path object.
129-
"""
130-
),
128+
"""),
131129
],
132130
config: Annotated[
133131
Optional[Config],
134-
Doc(
135-
"""
132+
Doc("""
136133
Configuration object for the OpenAPI application.
137-
"""
138-
),
134+
"""),
139135
] = None,
140136
):
141137
if not isinstance(spec, SchemaPath):
@@ -151,27 +147,21 @@ def from_dict(
151147
cls,
152148
data: Annotated[
153149
Schema,
154-
Doc(
155-
"""
150+
Doc("""
156151
Dictionary representing the OpenAPI specification.
157-
"""
158-
),
152+
"""),
159153
],
160154
config: Annotated[
161155
Optional[Config],
162-
Doc(
163-
"""
156+
Doc("""
164157
Configuration object for the OpenAPI application.
165-
"""
166-
),
158+
"""),
167159
] = None,
168160
base_uri: Annotated[
169161
str,
170-
Doc(
171-
"""
162+
Doc("""
172163
Base URI for the OpenAPI specification.
173-
"""
174-
),
164+
"""),
175165
] = "",
176166
) -> "OpenAPI":
177167
"""Creates an `OpenAPI` from a dictionary.
@@ -194,19 +184,15 @@ def from_path(
194184
cls,
195185
path: Annotated[
196186
Path,
197-
Doc(
198-
"""
187+
Doc("""
199188
Path object representing the OpenAPI specification file.
200-
"""
201-
),
189+
"""),
202190
],
203191
config: Annotated[
204192
Optional[Config],
205-
Doc(
206-
"""
193+
Doc("""
207194
Configuration object for the OpenAPI application.
208-
"""
209-
),
195+
"""),
210196
] = None,
211197
) -> "OpenAPI":
212198
"""Creates an `OpenAPI` from a [Path object](https://docs.python.org/3/library/pathlib.html#pathlib.Path).
@@ -229,19 +215,15 @@ def from_file_path(
229215
cls,
230216
file_path: Annotated[
231217
str,
232-
Doc(
233-
"""
218+
Doc("""
234219
File path string representing the OpenAPI specification file.
235-
"""
236-
),
220+
"""),
237221
],
238222
config: Annotated[
239223
Optional[Config],
240-
Doc(
241-
"""
224+
Doc("""
242225
Configuration object for the OpenAPI application.
243-
"""
244-
),
226+
"""),
245227
] = None,
246228
) -> "OpenAPI":
247229
"""Creates an `OpenAPI` from a file path string.
@@ -264,27 +246,21 @@ def from_file(
264246
cls,
265247
fileobj: Annotated[
266248
SupportsRead,
267-
Doc(
268-
"""
249+
Doc("""
269250
File object representing the OpenAPI specification file.
270-
"""
271-
),
251+
"""),
272252
],
273253
config: Annotated[
274254
Optional[Config],
275-
Doc(
276-
"""
255+
Doc("""
277256
Configuration object for the OpenAPI application.
278-
"""
279-
),
257+
"""),
280258
] = None,
281259
base_uri: Annotated[
282260
str,
283-
Doc(
284-
"""
261+
Doc("""
285262
Base URI for the OpenAPI specification.
286-
"""
287-
),
263+
"""),
288264
] = "",
289265
) -> "OpenAPI":
290266
"""Creates an `OpenAPI` from a [file object](https://docs.python.org/3/glossary.html#term-file-object).
@@ -542,11 +518,9 @@ def validate_request(
542518
self,
543519
request: Annotated[
544520
AnyRequest,
545-
Doc(
546-
"""
521+
Doc("""
547522
Request object to be validated.
548-
"""
549-
),
523+
"""),
550524
],
551525
) -> None:
552526
"""Validates the given request object.
@@ -567,19 +541,15 @@ def validate_response(
567541
self,
568542
request: Annotated[
569543
AnyRequest,
570-
Doc(
571-
"""
544+
Doc("""
572545
Request object associated with the response.
573-
"""
574-
),
546+
"""),
575547
],
576548
response: Annotated[
577549
Response,
578-
Doc(
579-
"""
550+
Doc("""
580551
Response object to be validated.
581-
"""
582-
),
552+
"""),
583553
],
584554
) -> None:
585555
"""Validates the given response object associated with the request.
@@ -601,11 +571,9 @@ def validate_apicall_request(
601571
self,
602572
request: Annotated[
603573
Request,
604-
Doc(
605-
"""
574+
Doc("""
606575
API call request object to be validated.
607-
"""
608-
),
576+
"""),
609577
],
610578
) -> None:
611579
if not isinstance(request, Request):
@@ -616,19 +584,15 @@ def validate_apicall_response(
616584
self,
617585
request: Annotated[
618586
Request,
619-
Doc(
620-
"""
587+
Doc("""
621588
API call request object associated with the response.
622-
"""
623-
),
589+
"""),
624590
],
625591
response: Annotated[
626592
Response,
627-
Doc(
628-
"""
593+
Doc("""
629594
API call response object to be validated.
630-
"""
631-
),
595+
"""),
632596
],
633597
) -> None:
634598
if not isinstance(request, Request):
@@ -641,11 +605,9 @@ def validate_webhook_request(
641605
self,
642606
request: Annotated[
643607
WebhookRequest,
644-
Doc(
645-
"""
608+
Doc("""
646609
Webhook request object to be validated.
647-
"""
648-
),
610+
"""),
649611
],
650612
) -> None:
651613
if not isinstance(request, WebhookRequest):
@@ -656,19 +618,15 @@ def validate_webhook_response(
656618
self,
657619
request: Annotated[
658620
WebhookRequest,
659-
Doc(
660-
"""
621+
Doc("""
661622
Webhook request object associated with the response.
662-
"""
663-
),
623+
"""),
664624
],
665625
response: Annotated[
666626
Response,
667-
Doc(
668-
"""
627+
Doc("""
669628
Webhook response object to be validated.
670-
"""
671-
),
629+
"""),
672630
],
673631
) -> None:
674632
if not isinstance(request, WebhookRequest):
@@ -681,11 +639,9 @@ def unmarshal_request(
681639
self,
682640
request: Annotated[
683641
AnyRequest,
684-
Doc(
685-
"""
642+
Doc("""
686643
Request object to be unmarshalled.
687-
"""
688-
),
644+
"""),
689645
],
690646
) -> RequestUnmarshalResult:
691647
"""Unmarshals the given request object.
@@ -709,19 +665,15 @@ def unmarshal_response(
709665
self,
710666
request: Annotated[
711667
AnyRequest,
712-
Doc(
713-
"""
668+
Doc("""
714669
Request object associated with the response.
715-
"""
716-
),
670+
"""),
717671
],
718672
response: Annotated[
719673
Response,
720-
Doc(
721-
"""
674+
Doc("""
722675
Response object to be unmarshalled.
723-
"""
724-
),
676+
"""),
725677
],
726678
) -> ResponseUnmarshalResult:
727679
"""Unmarshals the given response object associated with the request.
@@ -746,11 +698,9 @@ def unmarshal_apicall_request(
746698
self,
747699
request: Annotated[
748700
Request,
749-
Doc(
750-
"""
701+
Doc("""
751702
API call request object to be unmarshalled.
752-
"""
753-
),
703+
"""),
754704
],
755705
) -> RequestUnmarshalResult:
756706
if not isinstance(request, Request):
@@ -761,19 +711,15 @@ def unmarshal_apicall_response(
761711
self,
762712
request: Annotated[
763713
Request,
764-
Doc(
765-
"""
714+
Doc("""
766715
API call request object associated with the response.
767-
"""
768-
),
716+
"""),
769717
],
770718
response: Annotated[
771719
Response,
772-
Doc(
773-
"""
720+
Doc("""
774721
API call response object to be unmarshalled.
775-
"""
776-
),
722+
"""),
777723
],
778724
) -> ResponseUnmarshalResult:
779725
if not isinstance(request, Request):
@@ -786,11 +732,9 @@ def unmarshal_webhook_request(
786732
self,
787733
request: Annotated[
788734
WebhookRequest,
789-
Doc(
790-
"""
735+
Doc("""
791736
Webhook request object to be unmarshalled.
792-
"""
793-
),
737+
"""),
794738
],
795739
) -> RequestUnmarshalResult:
796740
if not isinstance(request, WebhookRequest):
@@ -801,19 +745,15 @@ def unmarshal_webhook_response(
801745
self,
802746
request: Annotated[
803747
WebhookRequest,
804-
Doc(
805-
"""
748+
Doc("""
806749
Webhook request object associated with the response.
807-
"""
808-
),
750+
"""),
809751
],
810752
response: Annotated[
811753
Response,
812-
Doc(
813-
"""
754+
Doc("""
814755
Webhook response object to be unmarshalled.
815-
"""
816-
),
756+
"""),
817757
],
818758
) -> ResponseUnmarshalResult:
819759
if not isinstance(request, WebhookRequest):

0 commit comments

Comments
 (0)