48# Хэндлер на команду /help
49@dp.message_handler(state='*', commands='help')
50@dp.message_handler(Text(equals='help', ignore_case=True), state='*')
51async def cmd_start(message: types.Message, state: FSMContext): 52 await message.answer("Этот бот, пока что, ищет только похожий товар по названию, а процент показывает, "
53 "насколько точное название необходимо найти")
54 current_state = await state.get_state()
A function, method or class is being redefined in the same scope. This would override the original definition, and doing this is strongly discouraged. Please verify that this is something that you intended to do. Redefining anything can lead to confusion, decreases code readability and may cause bugs that are difficult to diagnose. It is recommended either to refactor the function/method/class, or choose different names.
def calc(x, y):
return x + y
def calc(x, y):
return x * y
def calc_sum(x, y):
return x + y
def calc_product(x, y):
return x * y