diff --git a/tests/gateway/test_discord_document_handling.py b/tests/gateway/test_discord_document_handling.py index a22e0f0d66..d3ad137b61 100644 --- a/tests/gateway/test_discord_document_handling.py +++ b/tests/gateway/test_discord_document_handling.py @@ -9,6 +9,7 @@ import os import sys from datetime import datetime, timezone from types import SimpleNamespace +from typing import Optional from unittest.mock import AsyncMock, MagicMock, patch import pytest @@ -111,7 +112,7 @@ def adapter(monkeypatch): def make_attachment( *, filename: str, - content_type: str, + content_type: Optional[str], size: int = 1024, url: str = "https://cdn.discordapp.com/attachments/fake/file", ) -> SimpleNamespace: