This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any, ClassVar, Generator, List, Optional, Type, cast | |
from unittest.mock import sentinel | |
from typing_extensions import Self | |
UNSET_ENTITY = sentinel.UNSET_ENTITY | |
class ChainObject: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
from asyncio import to_thread | |
from random import sample | |
from string import ascii_uppercase, digits | |
from typing import TYPE_CHECKING, NamedTuple | |
from aiogram.types import BufferedInputFile | |
from captcha.image import ImageCaptcha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
from dataclasses import dataclass | |
from typing import TYPE_CHECKING | |
from aiogram import BaseMiddleware | |
from cachetools import TTLCache | |
if TYPE_CHECKING: |