This file contains hidden or 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
# generated by datamodel-codegen: | |
# filename: todoist-cache.json | |
# timestamp: 2020-09-21T18:40:06+00:00 | |
from typing import Any, Dict, List, Optional, Union | |
from pydantic import BaseModel, Field | |
class CollaboratorState(BaseModel): |
This file contains hidden or 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 haps import Inject | |
from pydantic.dataclasses import dataclass | |
from app.clients.telegram.botclients import BotClient | |
from app.clients.telegram.userclients import UserClient | |
from botkit.builders import ViewBuilder | |
from botkit.core.modules import Module, module | |
from botkit.models import IGatherer | |
from botkit.routing.route_builder.builder import RouteBuilder | |
from botkit.tghelpers.names import display_name |
This file contains hidden or 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 haps import Inject | |
from pydantic.dataclasses import dataclass | |
from app.clients.telegram.botclients import BotClient | |
from app.clients.telegram.userclients import UserClient | |
from botkit.builders import ViewBuilder | |
from botkit.core.modules import Module, module | |
from botkit.models import IGatherer | |
from botkit.routing.pipelines.execution_plan import SendTo | |
from botkit.routing.route_builder.builder import RouteBuilder |
This file contains hidden or 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
import re | |
import traceback | |
from typing import ( | |
Set, | |
cast, | |
) | |
import black | |
from haps import Inject | |
from meval import meval |
This file contains hidden or 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 dataclasses import dataclass | |
from typing import Any, Dict, List, Optional, Union | |
import sys | |
from pyrogram.filters import Filter, create | |
from pyrogram.types import Message, MessageEntity | |
from typing_extensions import Literal | |
MessageEntityType = Literal[ | |
"mention", |
This file contains hidden or 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 haps import Inject | |
from pydantic.dataclasses import dataclass | |
from app.abstractions.base_module import BaseModule | |
from app.clients.telegram.botclients import BotClient | |
from app.clients.telegram.userclients import UserClient | |
from botkit.builders import ViewBuilder | |
from botkit.core.modules import Module, module | |
from botkit.models import IGatherer | |
from botkit.routing.pipelines.executionplan import RemoveTrigger, SendTo |
This file contains hidden or 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 contextlib import asynccontextmanager | |
from typing import AsyncGenerator | |
import pytest | |
@pytest.mark.asyncio | |
async def test(): | |
async with ctm() as r: | |
print(r) |
This file contains hidden or 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 contextlib import asynccontextmanager | |
from typing import AsyncGenerator | |
import pytest | |
@pytest.mark.asyncio | |
async def test(): | |
async with ctm() as r: | |
print(r) |
This file contains hidden or 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 ( | |
Iterable, | |
Union, | |
overload, | |
) | |
from uuid import uuid4 | |
from .has_route_collection import IRouteCollection | |
from .state_route_builder import StateRouteBuilder |
This file contains hidden or 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
import re | |
from typing import AbstractSet, Any, Dict, List, Optional, Union | |
from azure.appconfiguration import AzureAppConfigurationClient | |
from decouple import config | |
from pydantic.fields import ModelField | |
from pydantic.main import BaseModel, Extra | |
from pydantic.typing import display_as_type | |
from pydantic.utils import deep_update, sequence_like |