Skip to content

Commit f66753d

Browse files
committed
fix: clean up whitespaces
1 parent 0efa97e commit f66753d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

typeid/typeid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,18 @@ def from_uuid(suffix: uuid6.UUID, prefix: Optional[str] = None) -> TypeID:
8181

8282
def get_prefix_and_suffix(string: str) -> tuple:
8383
parts = string.rsplit("_", 1)
84-
84+
8585
# When there's no underscore in the string.
8686
if len(parts) == 1:
8787
if parts[0].strip() == "":
8888
raise InvalidTypeIDStringException(f"Invalid TypeID: {string}")
8989
return None, parts[0]
90-
90+
9191
# When there is an underscore, unpack prefix and suffix.
9292
prefix, suffix = parts
9393
if prefix.strip() == "" or suffix.strip() == "":
9494
raise InvalidTypeIDStringException(f"Invalid TypeID: {string}")
95-
95+
9696
return prefix, suffix
9797

9898

0 commit comments

Comments
 (0)