Skip to content

Commit

Permalink
Add typings for celery.utils.log (#143)
Browse files Browse the repository at this point in the history
Celery has two variables called `task_logger` and `worker_logger`, obtained from calling `get_logger`, you can view the code from here: https://github.com/celery/celery/blob/ae54d4100f976bf4ed4d12544d8acf80803d9cf3/celery/utils/log.py#L105-L106
  • Loading branch information
OmerFI authored Nov 10, 2023
1 parent cd5de3e commit fe50013
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions celery-stubs/utils/log.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ class LoggingProxy: ...

def get_logger(name: str) -> Logger: ...
def get_task_logger(name: str) -> Logger: ...

task_logger: Logger
worker_logger: Logger

0 comments on commit fe50013

Please sign in to comment.