File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class Settings(BaseSettings):
4141 list [AnyUrl ] | str , BeforeValidator (parse_cors )
4242 ] = []
4343
44- @computed_field # type: ignore[prop-decorator] # ty: ignore[unused-ignore-comment]
44+ @computed_field # type: ignore[prop-decorator]
4545 @property
4646 def all_cors_origins (self ) -> list [str ]:
4747 return [str (origin ).rstrip ("/" ) for origin in self .BACKEND_CORS_ORIGINS ] + [
@@ -56,7 +56,7 @@ def all_cors_origins(self) -> list[str]:
5656 POSTGRES_PASSWORD : str = ""
5757 POSTGRES_DB : str = ""
5858
59- @computed_field # type: ignore[prop-decorator] # ty: ignore[unused-ignore-comment]
59+ @computed_field # type: ignore[prop-decorator]
6060 @property
6161 def SQLALCHEMY_DATABASE_URI (self ) -> PostgresDsn :
6262 return PostgresDsn .build (
@@ -85,7 +85,7 @@ def _set_default_emails_from(self) -> Self:
8585
8686 EMAIL_RESET_TOKEN_EXPIRE_HOURS : int = 48
8787
88- @computed_field # type: ignore[prop-decorator] # ty: ignore[unused-ignore-comment]
88+ @computed_field # type: ignore[prop-decorator]
8989 @property
9090 def emails_enabled (self ) -> bool :
9191 return bool (self .SMTP_HOST and self .EMAILS_FROM_EMAIL )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def custom_generate_unique_id(route: APIRoute) -> str:
2323# Set all CORS enabled origins
2424if settings .all_cors_origins :
2525 app .add_middleware (
26- CORSMiddleware , # ty: ignore
26+ CORSMiddleware ,
2727 allow_origins = settings .all_cors_origins ,
2828 allow_credentials = True ,
2929 allow_methods = ["*" ],
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class UserRegister(SQLModel):
3131
3232# Properties to receive via API on update, all are optional
3333class UserUpdate (UserBase ):
34- email : EmailStr | None = Field (default = None , max_length = 255 ) # type: ignore # ty: ignore[unused-ignore-comment ]
34+ email : EmailStr | None = Field (default = None , max_length = 255 ) # type: ignore[assignment ]
3535 password : str | None = Field (default = None , min_length = 8 , max_length = 128 )
3636
3737
@@ -80,7 +80,7 @@ class ItemCreate(ItemBase):
8080
8181# Properties to receive on item update
8282class ItemUpdate (ItemBase ):
83- title : str | None = Field (default = None , min_length = 1 , max_length = 255 ) # type: ignore # ty: ignore[unused-ignore-comment ]
83+ title : str | None = Field (default = None , min_length = 1 , max_length = 255 ) # type: ignore[assignment ]
8484
8585
8686# Database model, database table inferred from class name
Original file line number Diff line number Diff line change 44from pathlib import Path
55from typing import Any
66
7- import emails # type: ignore # ty: ignore[unused-ignore-comment ]
7+ import emails # type: ignore[import-untyped ]
88import jwt
99from jinja2 import Template
1010from jwt .exceptions import InvalidTokenError
You can’t perform that action at this time.
0 commit comments