refactor: improve code formatting and organization across multiple files
This commit is contained in:
@@ -43,7 +43,9 @@ def to_public_user(user: UserInDB) -> UserPublic:
|
||||
return UserPublic(username=user.username, full_name=user.full_name)
|
||||
|
||||
|
||||
def register_user(username: str, password: str, full_name: Optional[str] = None) -> UserInDB:
|
||||
def register_user(
|
||||
username: str, password: str, full_name: Optional[str] = None
|
||||
) -> UserInDB:
|
||||
normalized_username = username.strip()
|
||||
if not normalized_username:
|
||||
raise ValueError("Username must not be empty")
|
||||
|
||||
Reference in New Issue
Block a user