Skip to content

Commit 896435b

Browse files
committed
fix: Blacken.
1 parent 1731146 commit 896435b

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

openapi_pydantic/v3/v3_0_3/schema.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,7 @@ def schema_validate(
605605
strict: Optional[bool] = None,
606606
from_attributes: Optional[bool] = None,
607607
context: Optional[Dict[str, Any]] = None
608-
) -> Schema:
609-
...
608+
) -> Schema: ...
610609

611610
elif PYDANTIC_V2:
612611
schema_validate = Schema.model_validate

openapi_pydantic/v3/v3_0_3/util.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def get_mode(
5858

5959
if TYPE_CHECKING:
6060

61-
class GenerateOpenAPI30Schema:
62-
...
61+
class GenerateOpenAPI30Schema: ...
6362

6463
elif PYDANTIC_V2:
6564
from enum import Enum
@@ -111,8 +110,7 @@ def literal_schema(self, schema: core_schema.LiteralSchema) -> JsonSchemaValue:
111110

112111
else:
113112

114-
class GenerateOpenAPI30Schema:
115-
...
113+
class GenerateOpenAPI30Schema: ...
116114

117115

118116
def construct_open_api_with_schema_class(

openapi_pydantic/v3/v3_1_0/schema.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,7 @@ def schema_validate(
962962
strict: Optional[bool] = None,
963963
from_attributes: Optional[bool] = None,
964964
context: Optional[Dict[str, Any]] = None
965-
) -> Schema:
966-
...
965+
) -> Schema: ...
967966

968967
elif PYDANTIC_V2:
969968
schema_validate = Schema.model_validate

tests/util/test_optional_and_computed.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ def construct_sample_api() -> OpenAPI:
6363

6464
if TYPE_CHECKING:
6565

66-
def computed_field(x: Callable) -> Callable:
67-
...
66+
def computed_field(x: Callable) -> Callable: ...
6867

6968
else:
7069
from pydantic import computed_field

tests/v3_0_3/test_optional_and_computed.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ def construct_sample_api() -> OpenAPI:
6666

6767
if TYPE_CHECKING:
6868

69-
def computed_field(x: Callable) -> Callable:
70-
...
69+
def computed_field(x: Callable) -> Callable: ...
7170

7271
else:
7372
from pydantic import computed_field

0 commit comments

Comments
 (0)