Skip to content

Commit

Permalink
Specify substrate handler return type
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom committed Dec 20, 2024
1 parent 96e6cc1 commit ee1dcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/weight_setting/substrate_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def substrate(self):
wait=wait_exponential(multiplier=1.5, min=2, max=5),
reraise=True,
)
def execute(self, action: Callable[[SubstrateInterface], R]):
def execute(self, action: Callable[[SubstrateInterface], R]) -> R:
try:
return action(self._substrate)
except BaseException:
Expand Down

0 comments on commit ee1dcc0

Please sign in to comment.