Skip to content

Commit

Permalink
make bytes optional
Browse files Browse the repository at this point in the history
  • Loading branch information
athalhammer committed Jul 23, 2023
1 parent c63d23a commit 0ba6e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erdi8/erdi8.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def encode_four_bytes(self, bts: List[int]) -> str:
f"Error: We only encode 4 bytes at at time. You provided {len(bts)} bytes."
)

def decode_four_bytes(self, erdi8: str) -> bytes:
def decode_four_bytes(self, erdi8: str) -> Optional[bytes]:
"""
This method decodes an erdi8 string of length 7 to a bytes object of size 4. This will return a bytes object
Expand Down

0 comments on commit 0ba6e6b

Please sign in to comment.