models: Extract zerver.models.users.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-12-14 16:16:00 -08:00
committed by Tim Abbott
parent 37a9c4501f
commit 45bb8d2580
114 changed files with 1260 additions and 1273 deletions

View File

@@ -99,7 +99,8 @@ from zerver.lib.validator import (
check_union,
to_non_negative_int,
)
from zerver.models import Realm, Stream, UserGroup, UserMessage, UserProfile, get_system_bot
from zerver.models import Realm, Stream, UserGroup, UserMessage, UserProfile
from zerver.models.users import get_system_bot
def principal_to_user_profile(agent: UserProfile, principal: Union[str, int]) -> UserProfile: