invites: Broaden invite_expires_in_minutes type.

It may be internally recomputed using .total_seconds() / 60, which is
a float.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-06 10:24:24 -07:00 committed by Tim Abbott
parent 8b47b5dc34
commit 042f28dca8
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ def do_send_user_invite_email(
*,
confirmation: Optional[Confirmation] = None,
event_time: Optional[datetime] = None,
invite_expires_in_minutes: Optional[int] = None,
invite_expires_in_minutes: Optional[float] = None,
) -> None:
# Take a lock on the realm, so we can check for invitation limits without races
realm_id = assert_is_not_none(prereg_user.realm_id)