File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 44# pylint: disable=too-many-arguments
55
66
7- from typing import Any
7+ from typing import Annotated , Any
88
99from fastapi import APIRouter , status
1010from models_library .api_schemas_webserver .auth import (
@@ -211,13 +211,16 @@ async def change_email(_body: ChangeEmailBody):
211211
212212
213213class PasswordCheckSchema (BaseModel ):
214- strength : confloat (ge = 0.0 , le = 1.0 ) = Field ( # type: ignore
215- ...,
216- description = "The strength of the password ranges from 0 (extremely weak) and 1 (extremely strong)" ,
217- )
218- rating : str | None = Field (
219- None , description = "Human readable rating from infinitely weak to very strong"
220- )
214+ strength : Annotated [
215+ confloat (ge = 0.0 , le = 1.0 ),
216+ Field (
217+ description = "The strength of the password ranges from 0 (extremely weak) and 1 (extremely strong)" ,
218+ ),
219+ ]
220+ rating : Annotated [
221+ str | None ,
222+ Field (description = "Human readable rating from infinitely weak to very strong" ),
223+ ] = None
221224 improvements : Any | None = None
222225
223226
You can’t perform that action at this time.
0 commit comments