From 23966823ed8a1a7b37af3a700d4382b7f401d863 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 15:43:12 +0000 Subject: [PATCH 1/2] Bump black from 25.11.0 to 26.1.0 Bumps [black](https://github.com/psf/black) from 25.11.0 to 26.1.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/25.11.0...26.1.0) --- updated-dependencies: - dependency-name: black dependency-version: 26.1.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- poetry.lock | 75 +++++++++++++++++++++++++++----------------------- pyproject.toml | 2 +- 2 files changed, 42 insertions(+), 35 deletions(-) diff --git a/poetry.lock b/poetry.lock index 41eb80f9..db2c97f7 100644 --- a/poetry.lock +++ b/poetry.lock @@ -361,45 +361,46 @@ extras = ["regex"] [[package]] name = "black" -version = "25.11.0" +version = "26.1.0" description = "The uncompromising code formatter." optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "black-25.11.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ec311e22458eec32a807f029b2646f661e6859c3f61bc6d9ffb67958779f392e"}, - {file = "black-25.11.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1032639c90208c15711334d681de2e24821af0575573db2810b0763bcd62e0f0"}, - {file = "black-25.11.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0c0f7c461df55cf32929b002335883946a4893d759f2df343389c4396f3b6b37"}, - {file = "black-25.11.0-cp310-cp310-win_amd64.whl", hash = "sha256:f9786c24d8e9bd5f20dc7a7f0cdd742644656987f6ea6947629306f937726c03"}, - {file = "black-25.11.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:895571922a35434a9d8ca67ef926da6bc9ad464522a5fe0db99b394ef1c0675a"}, - {file = "black-25.11.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:cb4f4b65d717062191bdec8e4a442539a8ea065e6af1c4f4d36f0cdb5f71e170"}, - {file = "black-25.11.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d81a44cbc7e4f73a9d6ae449ec2317ad81512d1e7dce7d57f6333fd6259737bc"}, - {file = "black-25.11.0-cp311-cp311-win_amd64.whl", hash = "sha256:7eebd4744dfe92ef1ee349dc532defbf012a88b087bb7ddd688ff59a447b080e"}, - {file = "black-25.11.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:80e7486ad3535636657aa180ad32a7d67d7c273a80e12f1b4bfa0823d54e8fac"}, - {file = "black-25.11.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6cced12b747c4c76bc09b4db057c319d8545307266f41aaee665540bc0e04e96"}, - {file = "black-25.11.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cb2d54a39e0ef021d6c5eef442e10fd71fcb491be6413d083a320ee768329dd"}, - {file = "black-25.11.0-cp312-cp312-win_amd64.whl", hash = "sha256:ae263af2f496940438e5be1a0c1020e13b09154f3af4df0835ea7f9fe7bfa409"}, - {file = "black-25.11.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0a1d40348b6621cc20d3d7530a5b8d67e9714906dfd7346338249ad9c6cedf2b"}, - {file = "black-25.11.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:51c65d7d60bb25429ea2bf0731c32b2a2442eb4bd3b2afcb47830f0b13e58bfd"}, - {file = "black-25.11.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:936c4dd07669269f40b497440159a221ee435e3fddcf668e0c05244a9be71993"}, - {file = "black-25.11.0-cp313-cp313-win_amd64.whl", hash = "sha256:f42c0ea7f59994490f4dccd64e6b2dd49ac57c7c84f38b8faab50f8759db245c"}, - {file = "black-25.11.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:35690a383f22dd3e468c85dc4b915217f87667ad9cce781d7b42678ce63c4170"}, - {file = "black-25.11.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:dae49ef7369c6caa1a1833fd5efb7c3024bb7e4499bf64833f65ad27791b1545"}, - {file = "black-25.11.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5bd4a22a0b37401c8e492e994bce79e614f91b14d9ea911f44f36e262195fdda"}, - {file = "black-25.11.0-cp314-cp314-win_amd64.whl", hash = "sha256:aa211411e94fdf86519996b7f5f05e71ba34835d8f0c0f03c00a26271da02664"}, - {file = "black-25.11.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a3bb5ce32daa9ff0605d73b6f19da0b0e6c1f8f2d75594db539fdfed722f2b06"}, - {file = "black-25.11.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9815ccee1e55717fe9a4b924cae1646ef7f54e0f990da39a34fc7b264fcf80a2"}, - {file = "black-25.11.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:92285c37b93a1698dcbc34581867b480f1ba3a7b92acf1fe0467b04d7a4da0dc"}, - {file = "black-25.11.0-cp39-cp39-win_amd64.whl", hash = "sha256:43945853a31099c7c0ff8dface53b4de56c41294fa6783c0441a8b1d9bf668bc"}, - {file = "black-25.11.0-py3-none-any.whl", hash = "sha256:e3f562da087791e96cefcd9dda058380a442ab322a02e222add53736451f604b"}, - {file = "black-25.11.0.tar.gz", hash = "sha256:9a323ac32f5dc75ce7470501b887250be5005a01602e931a15e45593f70f6e08"}, + {file = "black-26.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ca699710dece84e3ebf6e92ee15f5b8f72870ef984bf944a57a777a48357c168"}, + {file = "black-26.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5e8e75dabb6eb83d064b0db46392b25cabb6e784ea624219736e8985a6b3675d"}, + {file = "black-26.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eb07665d9a907a1a645ee41a0df8a25ffac8ad9c26cdb557b7b88eeeeec934e0"}, + {file = "black-26.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:7ed300200918147c963c87700ccf9966dceaefbbb7277450a8d646fc5646bf24"}, + {file = "black-26.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:c5b7713daea9bf943f79f8c3b46f361cc5229e0e604dcef6a8bb6d1c37d9df89"}, + {file = "black-26.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3cee1487a9e4c640dc7467aaa543d6c0097c391dc8ac74eb313f2fbf9d7a7cb5"}, + {file = "black-26.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d62d14ca31c92adf561ebb2e5f2741bf8dea28aef6deb400d49cca011d186c68"}, + {file = "black-26.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fb1dafbbaa3b1ee8b4550a84425aac8874e5f390200f5502cf3aee4a2acb2f14"}, + {file = "black-26.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:101540cb2a77c680f4f80e628ae98bd2bd8812fb9d72ade4f8995c5ff019e82c"}, + {file = "black-26.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:6f3977a16e347f1b115662be07daa93137259c711e526402aa444d7a88fdc9d4"}, + {file = "black-26.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6eeca41e70b5f5c84f2f913af857cf2ce17410847e1d54642e658e078da6544f"}, + {file = "black-26.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:dd39eef053e58e60204f2cdf059e2442e2eb08f15989eefe259870f89614c8b6"}, + {file = "black-26.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9459ad0d6cd483eacad4c6566b0f8e42af5e8b583cee917d90ffaa3778420a0a"}, + {file = "black-26.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:a19915ec61f3a8746e8b10adbac4a577c6ba9851fa4a9e9fbfbcf319887a5791"}, + {file = "black-26.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:643d27fb5facc167c0b1b59d0315f2674a6e950341aed0fc05cf307d22bf4954"}, + {file = "black-26.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ba1d768fbfb6930fc93b0ecc32a43d8861ded16f47a40f14afa9bb04ab93d304"}, + {file = "black-26.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2b807c240b64609cb0e80d2200a35b23c7df82259f80bef1b2c96eb422b4aac9"}, + {file = "black-26.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1de0f7d01cc894066a1153b738145b194414cc6eeaad8ef4397ac9abacf40f6b"}, + {file = "black-26.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:91a68ae46bf07868963671e4d05611b179c2313301bd756a89ad4e3b3db2325b"}, + {file = "black-26.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:be5e2fe860b9bd9edbf676d5b60a9282994c03fbbd40fe8f5e75d194f96064ca"}, + {file = "black-26.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:9dc8c71656a79ca49b8d3e2ce8103210c9481c57798b48deeb3a8bb02db5f115"}, + {file = "black-26.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:b22b3810451abe359a964cc88121d57f7bce482b53a066de0f1584988ca36e79"}, + {file = "black-26.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:53c62883b3f999f14e5d30b5a79bd437236658ad45b2f853906c7cbe79de00af"}, + {file = "black-26.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:f016baaadc423dc960cdddf9acae679e71ee02c4c341f78f3179d7e4819c095f"}, + {file = "black-26.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:66912475200b67ef5a0ab665011964bf924745103f51977a78b4fb92a9fc1bf0"}, + {file = "black-26.1.0-py3-none-any.whl", hash = "sha256:1054e8e47ebd686e078c0bb0eaf31e6ce69c966058d122f2c0c950311f9f3ede"}, + {file = "black-26.1.0.tar.gz", hash = "sha256:d294ac3340eef9c9eb5d29288e96dc719ff269a88e27b396340459dd85da4c58"}, ] [package.dependencies] click = ">=8.0.0" mypy-extensions = ">=0.4.3" packaging = ">=22.0" -pathspec = ">=0.9.0" +pathspec = ">=1.0.0" platformdirs = ">=2" pytokens = ">=0.3.0" tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} @@ -2435,16 +2436,22 @@ files = [ [[package]] name = "pathspec" -version = "0.11.2" +version = "1.0.4" description = "Utility library for gitignore style pattern matching of file paths." optional = false -python-versions = ">=3.7" +python-versions = ">=3.9" groups = ["dev", "docs"] files = [ - {file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"}, - {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"}, + {file = "pathspec-1.0.4-py3-none-any.whl", hash = "sha256:fb6ae2fd4e7c921a165808a552060e722767cfa526f99ca5156ed2ce45a5c723"}, + {file = "pathspec-1.0.4.tar.gz", hash = "sha256:0210e2ae8a21a9137c0d470578cb0e595af87edaa6ebf12ff176f14a02e0e645"}, ] +[package.extras] +hyperscan = ["hyperscan (>=0.7)"] +optional = ["typing-extensions (>=4)"] +re2 = ["google-re2 (>=1.1)"] +tests = ["pytest (>=9)", "typing-extensions (>=4.15)"] + [[package]] name = "pexpect" version = "4.9.0" @@ -4030,4 +4037,4 @@ starlette = ["aioitertools", "starlette"] [metadata] lock-version = "2.1" python-versions = "^3.10.0" -content-hash = "2fb7532a4607540037f13d77429877f23187e4e9cf0757e6eceab40d61f92973" +content-hash = "40e6e65d85b49d9f1472356977c779c5a6f62c0d46c3d731e98e2710b470b109" diff --git a/pyproject.toml b/pyproject.toml index d69d9485..d77055d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,7 @@ aiohttp = ["aiohttp", "multidict"] starlette = ["starlette", "aioitertools"] [tool.poetry.group.dev.dependencies] -black = ">=23.3,<26.0" +black = ">=23.3,<27.0" django = ">=3.0" djangorestframework = "^3.11.2" falcon = ">=3.0" From 117ef63b989cda0815bd65d620675fbe0945bacc Mon Sep 17 00:00:00 2001 From: p1c2u Date: Tue, 17 Feb 2026 15:53:25 +0000 Subject: [PATCH 2/2] Black 26 formatting --- openapi_core/app.py | 180 ++++++------------ tests/integration/conftest.py | 6 +- .../data/v3.0/aiohttpproject/pets/views.py | 6 +- .../data/v3.0/djangoproject/pets/views.py | 6 +- .../data/v3.0/falconproject/pets/resources.py | 6 +- .../data/v3.0/fastapiproject/routers/pets.py | 6 +- .../data/v3.0/flaskproject/pets/views.py | 6 +- .../v3.0/starletteproject/pets/endpoints.py | 6 +- 8 files changed, 74 insertions(+), 148 deletions(-) diff --git a/openapi_core/app.py b/openapi_core/app.py index b239c08b..29faac60 100644 --- a/openapi_core/app.py +++ b/openapi_core/app.py @@ -123,19 +123,15 @@ def __init__( self, spec: Annotated[ SchemaPath, - Doc( - """ + Doc(""" OpenAPI specification schema path object. - """ - ), + """), ], config: Annotated[ Optional[Config], - Doc( - """ + Doc(""" Configuration object for the OpenAPI application. - """ - ), + """), ] = None, ): if not isinstance(spec, SchemaPath): @@ -151,27 +147,21 @@ def from_dict( cls, data: Annotated[ Schema, - Doc( - """ + Doc(""" Dictionary representing the OpenAPI specification. - """ - ), + """), ], config: Annotated[ Optional[Config], - Doc( - """ + Doc(""" Configuration object for the OpenAPI application. - """ - ), + """), ] = None, base_uri: Annotated[ str, - Doc( - """ + Doc(""" Base URI for the OpenAPI specification. - """ - ), + """), ] = "", ) -> "OpenAPI": """Creates an `OpenAPI` from a dictionary. @@ -194,19 +184,15 @@ def from_path( cls, path: Annotated[ Path, - Doc( - """ + Doc(""" Path object representing the OpenAPI specification file. - """ - ), + """), ], config: Annotated[ Optional[Config], - Doc( - """ + Doc(""" Configuration object for the OpenAPI application. - """ - ), + """), ] = None, ) -> "OpenAPI": """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( cls, file_path: Annotated[ str, - Doc( - """ + Doc(""" File path string representing the OpenAPI specification file. - """ - ), + """), ], config: Annotated[ Optional[Config], - Doc( - """ + Doc(""" Configuration object for the OpenAPI application. - """ - ), + """), ] = None, ) -> "OpenAPI": """Creates an `OpenAPI` from a file path string. @@ -264,27 +246,21 @@ def from_file( cls, fileobj: Annotated[ SupportsRead, - Doc( - """ + Doc(""" File object representing the OpenAPI specification file. - """ - ), + """), ], config: Annotated[ Optional[Config], - Doc( - """ + Doc(""" Configuration object for the OpenAPI application. - """ - ), + """), ] = None, base_uri: Annotated[ str, - Doc( - """ + Doc(""" Base URI for the OpenAPI specification. - """ - ), + """), ] = "", ) -> "OpenAPI": """Creates an `OpenAPI` from a [file object](https://docs.python.org/3/glossary.html#term-file-object). @@ -542,11 +518,9 @@ def validate_request( self, request: Annotated[ AnyRequest, - Doc( - """ + Doc(""" Request object to be validated. - """ - ), + """), ], ) -> None: """Validates the given request object. @@ -567,19 +541,15 @@ def validate_response( self, request: Annotated[ AnyRequest, - Doc( - """ + Doc(""" Request object associated with the response. - """ - ), + """), ], response: Annotated[ Response, - Doc( - """ + Doc(""" Response object to be validated. - """ - ), + """), ], ) -> None: """Validates the given response object associated with the request. @@ -601,11 +571,9 @@ def validate_apicall_request( self, request: Annotated[ Request, - Doc( - """ + Doc(""" API call request object to be validated. - """ - ), + """), ], ) -> None: if not isinstance(request, Request): @@ -616,19 +584,15 @@ def validate_apicall_response( self, request: Annotated[ Request, - Doc( - """ + Doc(""" API call request object associated with the response. - """ - ), + """), ], response: Annotated[ Response, - Doc( - """ + Doc(""" API call response object to be validated. - """ - ), + """), ], ) -> None: if not isinstance(request, Request): @@ -641,11 +605,9 @@ def validate_webhook_request( self, request: Annotated[ WebhookRequest, - Doc( - """ + Doc(""" Webhook request object to be validated. - """ - ), + """), ], ) -> None: if not isinstance(request, WebhookRequest): @@ -656,19 +618,15 @@ def validate_webhook_response( self, request: Annotated[ WebhookRequest, - Doc( - """ + Doc(""" Webhook request object associated with the response. - """ - ), + """), ], response: Annotated[ Response, - Doc( - """ + Doc(""" Webhook response object to be validated. - """ - ), + """), ], ) -> None: if not isinstance(request, WebhookRequest): @@ -681,11 +639,9 @@ def unmarshal_request( self, request: Annotated[ AnyRequest, - Doc( - """ + Doc(""" Request object to be unmarshalled. - """ - ), + """), ], ) -> RequestUnmarshalResult: """Unmarshals the given request object. @@ -709,19 +665,15 @@ def unmarshal_response( self, request: Annotated[ AnyRequest, - Doc( - """ + Doc(""" Request object associated with the response. - """ - ), + """), ], response: Annotated[ Response, - Doc( - """ + Doc(""" Response object to be unmarshalled. - """ - ), + """), ], ) -> ResponseUnmarshalResult: """Unmarshals the given response object associated with the request. @@ -746,11 +698,9 @@ def unmarshal_apicall_request( self, request: Annotated[ Request, - Doc( - """ + Doc(""" API call request object to be unmarshalled. - """ - ), + """), ], ) -> RequestUnmarshalResult: if not isinstance(request, Request): @@ -761,19 +711,15 @@ def unmarshal_apicall_response( self, request: Annotated[ Request, - Doc( - """ + Doc(""" API call request object associated with the response. - """ - ), + """), ], response: Annotated[ Response, - Doc( - """ + Doc(""" API call response object to be unmarshalled. - """ - ), + """), ], ) -> ResponseUnmarshalResult: if not isinstance(request, Request): @@ -786,11 +732,9 @@ def unmarshal_webhook_request( self, request: Annotated[ WebhookRequest, - Doc( - """ + Doc(""" Webhook request object to be unmarshalled. - """ - ), + """), ], ) -> RequestUnmarshalResult: if not isinstance(request, WebhookRequest): @@ -801,19 +745,15 @@ def unmarshal_webhook_response( self, request: Annotated[ WebhookRequest, - Doc( - """ + Doc(""" Webhook request object associated with the response. - """ - ), + """), ], response: Annotated[ Response, - Doc( - """ + Doc(""" Webhook response object to be unmarshalled. - """ - ), + """), ], ) -> ResponseUnmarshalResult: if not isinstance(request, WebhookRequest): diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 1f16deb6..b9e5eff4 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -27,15 +27,13 @@ def schema_path_from_url(base_uri): @pytest.fixture(scope="session") def data_gif(): - return b64decode( - """ + return b64decode(""" R0lGODlhEAAQAMQAAO3t7eHh4srKyvz8/P5pDP9rENLS0v/28P/17tXV1dHEvPDw8M3Nzfn5+d3d 3f5jA97Syvnv6MfLzcfHx/1mCPx4Kc/S1Pf189C+tP+xgv/k1N3OxfHy9NLV1/39/f///yH5BAAA AAAALAAAAAAQABAAAAVq4CeOZGme6KhlSDoexdO6H0IUR+otwUYRkMDCUwIYJhLFTyGZJACAwQcg EAQ4kVuEE2AIGAOPQQAQwXCfS8KQGAwMjIYIUSi03B7iJ+AcnmclHg4TAh0QDzIpCw4WGBUZeikD Fzk0lpcjIQA7 -""" - ) +""") class Factory(dict): diff --git a/tests/integration/contrib/aiohttp/data/v3.0/aiohttpproject/pets/views.py b/tests/integration/contrib/aiohttp/data/v3.0/aiohttpproject/pets/views.py index ad721df3..f017e438 100644 --- a/tests/integration/contrib/aiohttp/data/v3.0/aiohttpproject/pets/views.py +++ b/tests/integration/contrib/aiohttp/data/v3.0/aiohttpproject/pets/views.py @@ -8,15 +8,13 @@ class PetPhotoView(web.View): - OPENID_LOGO = b64decode( - """ + OPENID_LOGO = b64decode(""" R0lGODlhEAAQAMQAAO3t7eHh4srKyvz8/P5pDP9rENLS0v/28P/17tXV1dHEvPDw8M3Nzfn5+d3d 3f5jA97Syvnv6MfLzcfHx/1mCPx4Kc/S1Pf189C+tP+xgv/k1N3OxfHy9NLV1/39/f///yH5BAAA AAAALAAAAAAQABAAAAVq4CeOZGme6KhlSDoexdO6H0IUR+otwUYRkMDCUwIYJhLFTyGZJACAwQcg EAQ4kVuEE2AIGAOPQQAQwXCfS8KQGAwMjIYIUSi03B7iJ+AcnmclHg4TAh0QDzIpCw4WGBUZeikD Fzk0lpcjIQA7 -""" - ) +""") async def get(self): request_body = await self.request.text() diff --git a/tests/integration/contrib/django/data/v3.0/djangoproject/pets/views.py b/tests/integration/contrib/django/data/v3.0/djangoproject/pets/views.py index 1cdb3c4e..78adc0d9 100644 --- a/tests/integration/contrib/django/data/v3.0/djangoproject/pets/views.py +++ b/tests/integration/contrib/django/data/v3.0/djangoproject/pets/views.py @@ -87,15 +87,13 @@ def get_extra_actions(): class PetPhotoView(APIView): - OPENID_LOGO = b64decode( - """ + OPENID_LOGO = b64decode(""" R0lGODlhEAAQAMQAAO3t7eHh4srKyvz8/P5pDP9rENLS0v/28P/17tXV1dHEvPDw8M3Nzfn5+d3d 3f5jA97Syvnv6MfLzcfHx/1mCPx4Kc/S1Pf189C+tP+xgv/k1N3OxfHy9NLV1/39/f///yH5BAAA AAAALAAAAAAQABAAAAVq4CeOZGme6KhlSDoexdO6H0IUR+otwUYRkMDCUwIYJhLFTyGZJACAwQcg EAQ4kVuEE2AIGAOPQQAQwXCfS8KQGAwMjIYIUSi03B7iJ+AcnmclHg4TAh0QDzIpCw4WGBUZeikD Fzk0lpcjIQA7 -""" - ) +""") def get(self, request, petId): assert request.openapi diff --git a/tests/integration/contrib/falcon/data/v3.0/falconproject/pets/resources.py b/tests/integration/contrib/falcon/data/v3.0/falconproject/pets/resources.py index d6e903da..c716580e 100644 --- a/tests/integration/contrib/falcon/data/v3.0/falconproject/pets/resources.py +++ b/tests/integration/contrib/falcon/data/v3.0/falconproject/pets/resources.py @@ -87,15 +87,13 @@ def on_get(self, request, response, petId=None): class PetPhotoResource: - OPENID_LOGO = b64decode( - """ + OPENID_LOGO = b64decode(""" R0lGODlhEAAQAMQAAO3t7eHh4srKyvz8/P5pDP9rENLS0v/28P/17tXV1dHEvPDw8M3Nzfn5+d3d 3f5jA97Syvnv6MfLzcfHx/1mCPx4Kc/S1Pf189C+tP+xgv/k1N3OxfHy9NLV1/39/f///yH5BAAA AAAALAAAAAAQABAAAAVq4CeOZGme6KhlSDoexdO6H0IUR+otwUYRkMDCUwIYJhLFTyGZJACAwQcg EAQ4kVuEE2AIGAOPQQAQwXCfS8KQGAwMjIYIUSi03B7iJ+AcnmclHg4TAh0QDzIpCw4WGBUZeikD Fzk0lpcjIQA7 -""" - ) +""") def on_get(self, request, response, petId=None): response.content_type = MEDIA_JPEG diff --git a/tests/integration/contrib/fastapi/data/v3.0/fastapiproject/routers/pets.py b/tests/integration/contrib/fastapi/data/v3.0/fastapiproject/routers/pets.py index d4b763b9..48650ef0 100644 --- a/tests/integration/contrib/fastapi/data/v3.0/fastapiproject/routers/pets.py +++ b/tests/integration/contrib/fastapi/data/v3.0/fastapiproject/routers/pets.py @@ -11,15 +11,13 @@ except ImportError: from typing_extensions import Annotated -OPENID_LOGO = b64decode( - """ +OPENID_LOGO = b64decode(""" R0lGODlhEAAQAMQAAO3t7eHh4srKyvz8/P5pDP9rENLS0v/28P/17tXV1dHEvPDw8M3Nzfn5+d3d 3f5jA97Syvnv6MfLzcfHx/1mCPx4Kc/S1Pf189C+tP+xgv/k1N3OxfHy9NLV1/39/f///yH5BAAA AAAALAAAAAAQABAAAAVq4CeOZGme6KhlSDoexdO6H0IUR+otwUYRkMDCUwIYJhLFTyGZJACAwQcg EAQ4kVuEE2AIGAOPQQAQwXCfS8KQGAwMjIYIUSi03B7iJ+AcnmclHg4TAh0QDzIpCw4WGBUZeikD Fzk0lpcjIQA7 -""" -) +""") router = APIRouter( diff --git a/tests/integration/contrib/flask/data/v3.0/flaskproject/pets/views.py b/tests/integration/contrib/flask/data/v3.0/flaskproject/pets/views.py index f9b55a03..1f396730 100644 --- a/tests/integration/contrib/flask/data/v3.0/flaskproject/pets/views.py +++ b/tests/integration/contrib/flask/data/v3.0/flaskproject/pets/views.py @@ -9,15 +9,13 @@ class PetPhotoView(FlaskOpenAPIView): - OPENID_LOGO = b64decode( - """ + OPENID_LOGO = b64decode(""" R0lGODlhEAAQAMQAAO3t7eHh4srKyvz8/P5pDP9rENLS0v/28P/17tXV1dHEvPDw8M3Nzfn5+d3d 3f5jA97Syvnv6MfLzcfHx/1mCPx4Kc/S1Pf189C+tP+xgv/k1N3OxfHy9NLV1/39/f///yH5BAAA AAAALAAAAAAQABAAAAVq4CeOZGme6KhlSDoexdO6H0IUR+otwUYRkMDCUwIYJhLFTyGZJACAwQcg EAQ4kVuEE2AIGAOPQQAQwXCfS8KQGAwMjIYIUSi03B7iJ+AcnmclHg4TAh0QDzIpCw4WGBUZeikD Fzk0lpcjIQA7 -""" - ) +""") def get(self, petId): fp = BytesIO(self.OPENID_LOGO) diff --git a/tests/integration/contrib/starlette/data/v3.0/starletteproject/pets/endpoints.py b/tests/integration/contrib/starlette/data/v3.0/starletteproject/pets/endpoints.py index b17b3029..9a2ce5eb 100644 --- a/tests/integration/contrib/starlette/data/v3.0/starletteproject/pets/endpoints.py +++ b/tests/integration/contrib/starlette/data/v3.0/starletteproject/pets/endpoints.py @@ -4,15 +4,13 @@ from starlette.responses import Response from starlette.responses import StreamingResponse -OPENID_LOGO = b64decode( - """ +OPENID_LOGO = b64decode(""" R0lGODlhEAAQAMQAAO3t7eHh4srKyvz8/P5pDP9rENLS0v/28P/17tXV1dHEvPDw8M3Nzfn5+d3d 3f5jA97Syvnv6MfLzcfHx/1mCPx4Kc/S1Pf189C+tP+xgv/k1N3OxfHy9NLV1/39/f///yH5BAAA AAAALAAAAAAQABAAAAVq4CeOZGme6KhlSDoexdO6H0IUR+otwUYRkMDCUwIYJhLFTyGZJACAwQcg EAQ4kVuEE2AIGAOPQQAQwXCfS8KQGAwMjIYIUSi03B7iJ+AcnmclHg4TAh0QDzIpCw4WGBUZeikD Fzk0lpcjIQA7 -""" -) +""") async def pet_list_endpoint(request):