mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 20:36:27 +00:00
👷 Add ty to precommit (#2227)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8bf0025039
commit
2fdd62ce0c
@@ -31,7 +31,7 @@ class UserRegister(SQLModel):
|
||||
|
||||
# Properties to receive via API on update, all are optional
|
||||
class UserUpdate(UserBase):
|
||||
email: EmailStr | None = Field(default=None, max_length=255) # type: ignore
|
||||
email: EmailStr | None = Field(default=None, max_length=255) # type: ignore[assignment]
|
||||
password: str | None = Field(default=None, min_length=8, max_length=128)
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ class ItemCreate(ItemBase):
|
||||
|
||||
# Properties to receive on item update
|
||||
class ItemUpdate(ItemBase):
|
||||
title: str | None = Field(default=None, min_length=1, max_length=255) # type: ignore
|
||||
title: str | None = Field(default=None, min_length=1, max_length=255) # type: ignore[assignment]
|
||||
|
||||
|
||||
# Database model, database table inferred from class name
|
||||
|
||||
Reference in New Issue
Block a user