Skip to content

Commit

Permalink
Return typehint for _get_block_header_data()
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed Aug 1, 2023
1 parent e90d0c0 commit 16a221a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jmclient/jmclient/blockchaininterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def get_best_block_hash(self) -> str:
def get_best_block_median_time(self) -> int:
return self._rpc('getblockchaininfo', [])['mediantime']

def _get_block_header_data(self, blockhash: str, key: str):
def _get_block_header_data(self, blockhash: str, key: str) -> Any:
return self._rpc('getblockheader', [blockhash])[key]

def get_block_height(self, blockhash: str) -> int:
Expand Down

0 comments on commit 16a221a

Please sign in to comment.