Skip to content

Commit f8e7a77

Browse files
committed
chore(backend): clean up mypy findings
1 parent e428c84 commit f8e7a77

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

backend/src/infrastructure/cache/backends/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def ping(self) -> bool:
143143
True if the cache is available, False otherwise.
144144
"""
145145
try:
146-
result = await self.client.ping() # type: ignore[misc]
146+
result = await self.client.ping()
147147
return bool(result)
148148
except Exception:
149149
return False

backend/src/infrastructure/rate_limit/backends/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ async def ping(self) -> bool:
185185
True if the backend is available, False otherwise.
186186
"""
187187
try:
188-
result = await self.client.ping() # type: ignore[misc]
188+
result = await self.client.ping()
189189
return bool(result)
190190
except Exception as e:
191191
logger.error(f"Failed to ping Redis server: {e}")

backend/src/infrastructure/taskiq/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
__all__ = ["default_broker"]
77

88
if __name__ == "__main__":
9-
# Run with: python -m taskiq worker src.infrastructure.taskiq.worker:default_broker
9+
# Run with: python -m taskiq worker infrastructure.taskiq.worker:default_broker
1010
pass

backend/src/interfaces/admin/views/tiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ..mixins import DataclassModelMixin
1111

1212

13-
class TierAdmin(DataclassModelMixin, ModelView, model=Tier):
13+
class TierAdmin(DataclassModelMixin, ModelView, model=Tier): # type: ignore[call-arg]
1414
"""Admin view for Tier model."""
1515

1616
name = "Tier"

backend/src/interfaces/admin/views/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
OAUTH_PROVIDER_CHOICES = [("", "None")] + [(p.value, p.value.title()) for p in OAuthProvider]
1616

1717

18-
class UserAdmin(DataclassModelMixin, ModelView, model=User):
18+
class UserAdmin(DataclassModelMixin, ModelView, model=User): # type: ignore[call-arg]
1919
"""Admin view for User model with password hashing."""
2020

2121
name = "User"

0 commit comments

Comments
 (0)