MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / to_user

Method to_user

src/app/user/dto/user.py:52–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50
51class UserCreateRequest(UserBase):
52 def to_user(self) -> User:
53 return User(
54 first_name=self.first_name,
55 second_name=self.second_name,
56 email=self.email,
57 status=UserStatus.PENDING,
58 roles=self.roles or [Role.USER],
59 )
60
61
62class UserListRequest(Paginated):

Callers 1

createMethod · 0.45

Calls 1

UserClass · 0.90

Tested by

no test coverage detected