Skip to content

Commit 91e260d

Browse files
Simplify factory (#107)
1 parent 1782457 commit 91e260d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from uuid import UUID
2-
31
from uuid_utils import compat as uuid_utils
42

53
from app.core.common.entities.types_ import UserId
64

75

8-
def create_user_id(value: UUID | None = None) -> UserId:
9-
return UserId(value if value is not None else uuid_utils.uuid7())
6+
def create_user_id() -> UserId:
7+
return UserId(uuid_utils.uuid7())

0 commit comments

Comments
 (0)