Skip to content

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Dec 22, 2024
1 parent e24a198 commit 329733d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coredis/commands/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def __call__(
# Maybe the client is pointed to a different server than the client
# that created this instance?
# Overwrite the sha just in case there was a discrepancy.
self.sha = cast(AnyStr, await client.script_load(self.script))
self.sha = await client.script_load(self.script)
return cast(ResponseType, await method(self.sha, keys=keys, args=args))

async def execute(
Expand Down

0 comments on commit 329733d

Please sign in to comment.