+
    Tj                         ^ RI Ht ^ RIHt ^ RIHt  ! R R4      t ! R R4      t]! 4       t]P                  t	]P                  t
]P                  tR# )	    )Iterable)chain)func_accepts_kwargsc                   V    ] tR t^tRtRtRtRtRtRt	Rt
RtR	tR
tRtRtRtRtRtRtRtR# )Tagsz$
Built-in tags for internal checks.
adminasync_supportcachescommandscompatibilitydatabasefilesmodelssecuritysignalssitesstaticfiles	templatestranslationurls N)__name__
__module____qualname____firstlineno____doc__r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes__r       P/var/www/idalgo/venv/lib/python3.14/site-packages/django/core/checks/registry.pyr   r      sT     E#MFH#MHEFHGEKIKDr   r   c                   X   a  ] tR t^t o R tR	R ltR
R ltRR ltRR ltRR lt	Rt
V tR# )CheckRegistryc                B    \        4       V n        \        4       V n        R # N)setregistered_checksdeployment_checks)selfs   &r   __init__CheckRegistry.__init__   s    !$!$r   Nc                r   a aa VV V3R lp\        V4      '       d	   V! V4      # V'       d   SV3,          oV# )a  
Can be used as a function or a decorator. Register given function
`f` labeled with given `tags`. The function should receive **kwargs
and return list of Errors and Warnings.

Example::

    registry = CheckRegistry()
    @registry.register('mytag', 'anothertag')
    def my_check(app_configs, **kwargs):
        # ... perform checks and collect `errors` ...
        return errors
    # or
    registry.register(my_check, 'mytag', 'anothertag')
c                    < \        V 4      '       g   \        R 4      hSV n        SP                  R4      '       d   SP                  MSP
                  pVP                  V 4       V # )z9Check functions must accept keyword arguments (**kwargs).deploy)r   	TypeErrortagsgetr&   r%   add)checkcheckskwargsr'   r.   s   & r   inner%CheckRegistry.register.<locals>.inner3   sd    &u--O  EJ ::h'' &&++ 
 JJuLr   )callable)r'   r1   r.   r3   r4   s   f&jl r   registerCheckRegistry.register"   s1    "	 E??< Lr   c                N   . pV P                  V4      pVe>   V Uu. uF1  p\        VP                  4      P                  V4      '       d   K/  VNK3  	  ppV FE  pV! WR7      p\	        V\
        4      '       g   \        RV,          4      hVP                  V4       KG  	  V# u upi )zC
Run all registered checks and return list of Errors and Warnings.
)app_configs	databaseszlThe function %r did not return a list. All functions registered with the checks registry must return a list.)
get_checksr$   r.   
isdisjoint
isinstancer   r-   extend)	r'   r:   r.   include_deployment_checksr;   errorsr2   r1   
new_errorss	   &&&&&    r   
run_checksCheckRegistry.run_checksH   s     !:;)/Xs5::7Q7QRV7WeeFXE;LJj(33NPUV  MM*%   Ys   ,B"B"c                (    WP                  V4      9   # r#   )tags_available)r'   tagr@   s   &&&r   
tag_existsCheckRegistry.tag_existsb   s    ))*CDDDr   c                l    \        \        P                  ! R  V P                  V4       4       4      4      # )c              3   8   "   T F  qP                   x  K  	  R # 5ir#   )r.   ).0r1   s   & r   	<genexpr>/CheckRegistry.tags_available.<locals>.<genexpr>g   s       (Ju

(Js   )r$   r   from_iterabler<   )r'   r&   s   &&r   rF   CheckRegistry.tags_availablee   s4      (,8I(J  
 	
r   c                v    \        V P                  4      pV'       d   VP                  V P                  4       V# r#   )listr%   r?   r&   )r'   r@   r2   s   && r   r<   CheckRegistry.get_checksl   s,    d,,-$MM$001r   )r&   r%   r#   )NNFN)F)r   r   r   r   r(   r7   rC   rH   rF   r<   r   __classdictcell__)__classdict__s   @r   r!   r!      s*     '$L4E
 r   r!   N)collections.abcr   	itertoolsr   django.utils.inspectr   r   r!   registryr7   rC   rH   r   r   r   <module>rZ      sO    $  4 ,S Sl ?  
  
r   