Skip to content
Snippets Groups Projects
Commit 76b3704a authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Fix uuid test

parent 0879577a
No related branches found
No related tags found
1 merge request!1First try of type hints
......@@ -101,11 +101,11 @@ def bytes_to_uuid(val: bytes) -> Optional[UUID]:
return None
def is_valid_uuid(val: Union[UUID, str]) -> bool:
def is_valid_uuid(val: UUID) -> bool:
return isinstance(val, UUID)
def is_valid_address(val: Union[UUID, str]) -> bool:
def is_valid_address(val: UUID) -> bool:
return is_valid_uuid(val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment