File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } " )
Original file line number Diff line number Diff line change 66__all__ = ["default_broker" ]
77
88if __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
Original file line number Diff line number Diff line change 1010from ..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"
Original file line number Diff line number Diff line change 1515OAUTH_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"
You can’t perform that action at this time.
0 commit comments