B
Size: a a a
B
B
S
S
G
S
aiogram.utils.exceptions.NetworkError: Aiohttp client throws an error: ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [getaddrinfo failed]
B
АК
G
B
АК
ЕР
T =TypeVar("T", bound=BaseSchema)как-то так, только побалуйся с тем что указать в T
async def update(db: Database, schema: T, filter_fields: List = None, **kwargs) -> T
T
ЕР
T
$ mypy q.py
Success: no issues found in 1 source file
$ cat q.py
from typing import TypeVar
T = TypeVar("T", bound=int)
def x(a: T) -> T:
return a
b:bool = x(True)
c:int = x(0)
$
/start
$
ЕР
$