Issue 1:
Checklist

I have read the relevant section in the

contribution guide

on reporting bugs.

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues

in this issue (If there are none, check this box anyway).

Mandatory Debugging Information

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

I have included the contents of pip freeze in the issue.

I have included all the versions of all the external dependencies required

to reproduce this bug.

Optional Debugging Information

I have tried reproducing the issue on more than one Python version

and/or implementation.

I have tried reproducing the issue on more than one message broker and/or

result backend.

I have tried reproducing the issue on more than one version of the message

broker and/or result backend.

I have tried reproducing the issue on more than one operating system.

I have tried reproducing the issue on more than one workers pool.

I have tried reproducing the issue with autoscaling, retries,

ETA/Countdown & rate limits disabled.

I have tried reproducing the issue after downgrading

and/or upgrading Celery and its dependencies.

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Environment & Settings

Celery version: 4.3

celery report Output:

Steps to Reproduce

Required Dependencies

Minimal Python Version: N/A or Unknown

Minimal Celery Version: N/A or Unknown

Minimal Kombu Version: N/A or Unknown

Minimal Broker Version: N/A or Unknown

Minimal Result Backend Version: N/A or Unknown

Minimal OS and/or Kernel Version: N/A or Unknown

Minimal Broker Client Version: N/A or Unknown

Minimal Result Backend Client Version: N/A or Unknown

Python Packages

pip freeze Output:

Other Dependencies

N/A

Minimally Reproducible Test Case

Expected Behavior

no import errors

Actual Behavior

This release is supposed to be Python 2.7 compatible, but the most recent release of vine is 5+, which is Python 3. This breaks the build. I believe the vine version should be pinned to pre v5. I was able to fix it by doing this.

Defined to only use vine 5 in requirements.txt:

pytz>dev
billiard>=3.6.0,<4.0
kombu>=4.5.0,<5.0
vine>=5.0.0a1

File "/opt/buildagent/work/b2a7d77aec4cc7de/tmp/env/virtualenv/lib/python2.7/site-packages/vine-5.0.0a1-py2.7.egg/vine/abstract.py", line 8
[11:44:54]W: [Step 2/2] class Thenable(Callable, metaclass=abc.ABCMeta): # pragma: no cover
[11:44:54]W: [Step 2/2] ^
[11:44:54]W: [Step 2/2] SyntaxError: invalid syntax

Issue 2:
Checklist

I have checked the issues list

for similar or identical feature requests.

I have checked the pull requests list

for existing proposed implementations of this feature.

I have checked the commit log

to find out if the if the same feature was already implemented in the

master branch.

I have included all related issues and possible duplicate issues

in this issue (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Brief Summary

Design

Architectural Considerations

None

Proposed Behavior

Celery tasks created with @app.task should support typing.get_type_hints(my_celery_task).

It can be solved by copying the __annotations__ from the decorated function when available. This is done by functools.wraps() in Python 3.0+, if I understand PEP 3107 correctly. Without this typing.get_type_hints(my_celery_task) raises an exception.

It is my understanding that some other similar properties that functools.wraps handles are already copied:

celery/celery/app/base.py

Lines 453 to 454
in
d3863d9

'__doc__': fun.__doc__,

'__module__': fun.__module__,

Proposed UI/UX

Diagrams

N/A

Alternatives

None