We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1782457 commit 91e260dCopy full SHA for 91e260d
1 file changed
src/app/core/common/factories/id_factory.py
@@ -1,9 +1,7 @@
1
-from uuid import UUID
2
-
3
from uuid_utils import compat as uuid_utils
4
5
from app.core.common.entities.types_ import UserId
6
7
8
-def create_user_id(value: UUID | None = None) -> UserId:
9
- return UserId(value if value is not None else uuid_utils.uuid7())
+def create_user_id() -> UserId:
+ return UserId(uuid_utils.uuid7())
0 commit comments