attachments: Tighten type of validate_attachment_request_for_spectator_access.

This commit is contained in:
Alex Vandiver 2024-09-04 17:52:00 +00:00 committed by Tim Abbott
parent ca72e756eb
commit 0b0a7fa251
1 changed files with 1 additions and 3 deletions

View File

@ -50,9 +50,7 @@ def remove_attachment(user_profile: UserProfile, attachment: Attachment) -> None
attachment.delete()
def validate_attachment_request_for_spectator_access(
realm: Realm, attachment: Attachment
) -> bool | None:
def validate_attachment_request_for_spectator_access(realm: Realm, attachment: Attachment) -> bool:
if attachment.realm != realm:
return False