" /> " /> "/>

Untyped decorator makes function "add" untyped [misc] (celery & mypy)

32 Views Asked by At

I do not own the decorator.

from celery import Celery

app = Celery("tasks", broker="pyamqp://guest@localhost//")


@app.task
def add(x: int, y: int) -> int:
    return x + y

tasks.py:6: error: Untyped decorator makes function "add" untyped [misc]

Why?

0

There are 0 best solutions below