Skip to content

Plan to annotate Celery #7394

@Kludex

Description

@Kludex

Fully Type Annotated Celery

As per #7383, we added mypy to the pipeline, so we could start working on annotating this project in a way that work gets splitted.

Below, you can see a table of all celery files. If you want to contribute to our goal:

  1. Choose a file with ❌ .
  2. Comment here mentioning the PR, so I (or someone else with rights) can update the table to 💬 (in review).
  3. Once merged, come back so we can change the status to ✅ .

To get more context about how this idea started refer to #7258.

Annotate Celery

Status Filename PR
__init__.py
__main__.py #7383
_state.py
app/__init__.py
app/amqp.py
app/annotations.py
app/autoretry.py
app/backends.py
app/base.py
app/builtins.py
app/control.py
app/defaults.py
app/events.py
app/log.py
app/registry.py
app/routes.py
app/task.py
app/trace.py
app/utils.py
apps/__init__.py
apps/beat.py
apps/multi.py
apps/worker.py
backends/__init__.py
backends/arangodb.py
backends/asynchronous.py
backends/azureblockblob.py
backends/base.py
backends/cache.py
backends/cassandra.py
backends/consul.py
backends/cosmosdbsql.py
backends/couchbase.py
backends/couchdb.py
backends/database/__init__.py
backends/database/models.py
backends/database/session.py
backends/dynamodb.py
backends/elasticsearch.py
backends/filesystem.py
backends/mongodb.py
backends/redis.py
backends/rpc.py
backends/s3.py
beat.py
bin/__init__.py
bin/amqp.py
bin/base.py
bin/beat.py
bin/call.py
bin/celery.py
bin/control.py
bin/events.py
bin/graph.py
bin/list.py
bin/logtool.py
bin/migrate.py
bin/multi.py
bin/purge.py
bin/result.py
bin/shell.py
bin/upgrade.py
bin/worker.py
bootsteps.py
canvas.py
concurrency/__init__.py
concurrency/asynpool.py
concurrency/base.py
concurrency/eventlet.py
concurrency/gevent.py
concurrency/prefork.py
💬 concurrency/solo.py #7823
concurrency/thread.py #7808
contrib/__init__.py
contrib/abortable.py
contrib/migrate.py
contrib/pytest.py
contrib/rdb.py
contrib/sphinx.py
contrib/testing/__init__.py
contrib/testing/app.py
contrib/testing/manager.py
contrib/testing/mocks.py
contrib/testing/tasks.py
contrib/testing/worker.py
events/__init__.py
events/cursesmon.py
events/dispatcher.py
events/dumper.py
events/event.py
events/receiver.py
events/snapshot.py
events/state.py
💬 exceptions.py #7396
fixups/__init__.py #7399
fixups/django.py #7399
loaders/__init__.py
loaders/app.py
loaders/base.py
loaders/default.py
local.py
platforms.py
result.py
schedules.py
💬 security/__init__.py #7401
💬 security/certificate.py #7398
💬 security/key.py #7401
security/serialization.py
security/utils.py
signals.py #7395
states.py #7395
utils/__init__.py
utils/abstract.py
utils/collections.py
utils/debug.py
utils/deprecated.py
utils/dispatch/__init__.py
utils/dispatch/signal.py
utils/functional.py
utils/graph.py
utils/imports.py
utils/iso8601.py
utils/log.py
utils/nodenames.py
utils/objects.py
utils/saferepr.py
utils/serialization.py
utils/static/__init__.py
utils/sysinfo.py
utils/term.py
utils/text.py #8107
utils/threads.py
utils/time.py
utils/timer2.py
worker/__init__.py
worker/autoscale.py
worker/components.py
worker/consumer/__init__.py
worker/consumer/agent.py
worker/consumer/connection.py
worker/consumer/consumer.py
worker/consumer/control.py
worker/consumer/events.py
worker/consumer/gossip.py
worker/consumer/heart.py
worker/consumer/mingle.py
worker/consumer/tasks.py
worker/control.py
worker/heartbeat.py
worker/loops.py
worker/pidbox.py
worker/request.py
worker/state.py
worker/strategy.py
worker/worker.py

✅ (:white_check_mark:): Merged
❌ (:x:)): Need work
💬 (:speech_balloon:): In review

Script used to generate this table: https://github.com/kludex/annotation-plan

At the end, we should add py.typed, according to PEP-561.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions