Skip to content

Commit 403f000

Browse files
committed
cleanup
1 parent aee0392 commit 403f000

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

backend/app/core/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

backend/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def custom_generate_unique_id(route: APIRoute) -> str:
2323
# Set all CORS enabled origins
2424
if 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=["*"],

backend/app/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class UserRegister(SQLModel):
3131

3232
# Properties to receive via API on update, all are optional
3333
class 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
8282
class 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

backend/app/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55
from typing import Any
66

7-
import emails # type: ignore # ty: ignore[unused-ignore-comment]
7+
import emails # type: ignore[import-untyped]
88
import jwt
99
from jinja2 import Template
1010
from jwt.exceptions import InvalidTokenError

0 commit comments

Comments
 (0)