Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Oct 20, 2023
1 parent d45ad08 commit 4833d40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions safe_cli/argparse_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def check_positive_integer(number: str) -> int:
Positive integer validator for Argparse
:param number:
:return:
:return: Positive integer
"""
number = int(number)
if number <= 0:
Expand All @@ -27,7 +27,7 @@ def check_ethereum_address(address: str) -> ChecksumAddress:
Ethereum address validator for Argparse
:param address:
:return:
:return: Checksummed ethereum address
"""
if not Web3.is_checksum_address(address):
raise argparse.ArgumentTypeError(
Expand Down Expand Up @@ -55,7 +55,7 @@ def check_hex_str(hex_str: str) -> HexBytes:
Hexadecimal string validator for Argparse
:param hex_str:
:return:
:return: HexBytes from the provided hex string
"""
try:
return HexBytes(hex_str)
Expand All @@ -68,7 +68,7 @@ def check_keccak256_hash(hex_str: str) -> HexBytes:
Hexadecimal keccak256 validator for Argparse
:param hex_str:
:return:
:return: HexBytes from the provided hex string
"""
hex_str_bytes = check_hex_str(hex_str)
if len(hex_str_bytes) != 32:
Expand Down

0 comments on commit 4833d40

Please sign in to comment.