Coverage for gwcelery/util/proxy.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-11-14 05:52 +0000

1""" 

2Sphinx gets confused by :class:`celery.local.PromiseProxy` objects. 

3If running under Sphinx, substitute a dummy class for 

4:class:`~celery.local.PromiseProxy`. 

5""" 

6from .sphinx import SPHINX 

7 

8__all__ = ('PromiseProxy',) 

9 

10if SPHINX: # pragma: no cover 

11 class PromiseProxy: 

12 

13 def __init__(self, *args, **kwargs): 

14 pass 

15else: 

16 from celery.local import PromiseProxy