Skip to content

Commit 4853f5c

Browse files
committed
linting
1 parent b48ce99 commit 4853f5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pydantic_core/core_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,13 @@ def model_ser_schema(cls: Type[Any], schema: CoreSchema) -> ModelSerSchema:
434434
ModelSerSchema,
435435
]
436436

437+
437438
class InvalidSchema(TypedDict, total=False):
438439
type: Required[Literal['invalid']]
439440
ref: str
440441
metadata: Dict[str, Any]
441442

443+
442444
def invalid_schema(ref: str | None = None, metadata: Dict[str, Any] | None = None) -> InvalidSchema:
443445
"""
444446
Returns an invalid schema, used to indicate that a schema is invalid.
@@ -450,9 +452,7 @@ def invalid_schema(ref: str | None = None, metadata: Dict[str, Any] | None = Non
450452
metadata: Any other information you want to include with the schema, not used by pydantic-core
451453
"""
452454

453-
return _dict_not_none(
454-
type='invalid', ref=ref, metadata=metadata
455-
)
455+
return _dict_not_none(type='invalid', ref=ref, metadata=metadata)
456456

457457

458458
class ComputedField(TypedDict, total=False):

0 commit comments

Comments
 (0)