async def my_func(value: object):
some code
return x
async def my_func2():
while True:
y = await my_func(some_object)
if y == z:
break
yield y
async def my_func3():
async for i in my_func2():
print(i)
from aiogram.types import message
x = eval(you_str)
print(x)
x = []
for i in a:
match i,
case 'X': x.append(i)