Skip to content

Commit d410329

Browse files
committed
Ignore mypy error about decorator on top of property
1 parent a35be82 commit d410329

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/core/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MySQLSettings(DatabaseSettings):
4747
MYSQL_ASYNC_PREFIX: str = "mysql+aiomysql://"
4848
MYSQL_URL: str | None = None
4949

50-
@computed_field
50+
@computed_field # type: ignore[prop-decorator]
5151
@property
5252
def MYSQL_URI(self) -> str:
5353
credentials = f"{self.MYSQL_USER}:{self.MYSQL_PASSWORD}"
@@ -65,7 +65,7 @@ class PostgresSettings(DatabaseSettings):
6565
POSTGRES_ASYNC_PREFIX: str = "postgresql+asyncpg://"
6666
POSTGRES_URL: str | None = None
6767

68-
@computed_field
68+
@computed_field # type: ignore[prop-decorator]
6969
@property
7070
def POSTGRES_URI(self) -> str:
7171
credentials = f"{self.POSTGRES_USER}:{self.POSTGRES_PASSWORD}"
@@ -88,7 +88,7 @@ class RedisCacheSettings(BaseSettings):
8888
REDIS_CACHE_HOST: str = "localhost"
8989
REDIS_CACHE_PORT: int = 6379
9090

91-
@computed_field
91+
@computed_field # type: ignore[prop-decorator]
9292
@property
9393
def REDIS_CACHE_URL(self) -> str:
9494
return f"redis://{self.REDIS_CACHE_HOST}:{self.REDIS_CACHE_PORT}"
@@ -107,7 +107,7 @@ class RedisRateLimiterSettings(BaseSettings):
107107
REDIS_RATE_LIMIT_HOST: str = "localhost"
108108
REDIS_RATE_LIMIT_PORT: int = 6379
109109

110-
@computed_field
110+
@computed_field # type: ignore[prop-decorator]
111111
@property
112112
def REDIS_RATE_LIMIT_URL(self) -> str:
113113
return f"redis://{self.REDIS_RATE_LIMIT_HOST}:{self.REDIS_RATE_LIMIT_PORT}"

0 commit comments

Comments
 (0)