mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
This commit is contained in:
parent
484a61bdc1
commit
d29b18da8c
10 changed files with 53 additions and 16 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from collections import deque
|
||||
from typing import TYPE_CHECKING, AsyncGenerator, Deque, Optional, Type
|
||||
from typing import TYPE_CHECKING, Any, AsyncGenerator, Deque, Dict, Optional, Type
|
||||
|
||||
from aiogram import Bot
|
||||
from aiogram.client.session.base import BaseSession
|
||||
|
|
@ -42,9 +42,10 @@ class MockedSession(BaseSession):
|
|||
async def stream_content(
|
||||
self,
|
||||
url: str,
|
||||
timeout: int,
|
||||
chunk_size: int,
|
||||
raise_for_status: bool,
|
||||
headers: Optional[Dict[str, Any]] = None,
|
||||
timeout: int = 30,
|
||||
chunk_size: int = 65536,
|
||||
raise_for_status: bool = True,
|
||||
) -> AsyncGenerator[bytes, None]: # pragma: no cover
|
||||
yield b""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue