§
    “©ºjÞ  ã                   ó  — d Z ddlZddlmZ ddlmZmZ ddlmZ  ej	        de¬¦  «         ej
        Zdd	ed
dfd„Z	 ddeeef         dee         dededee         d
efd„Zee_
         G d„ de¦  «        Zded
efd„ZdS )zWarning-related utilities.é    N)ÚPath)ÚOptionalÚUnion)ÚLightningDeprecationWarningÚdefault)ÚcategoryÚ ÚmoduleÚreturnc                 ó>   — t          j        d| t          ¬¦  «         dS )au  Ignore warnings of the category ``PossibleUserWarning`` from Lightning.

    For more granular control over which warnings to ignore, use :func:`warnings.filterwarnings` directly.

    Args:
        module: Name of the module for which the warnings should be ignored (e.g., ``'pytorch_lightning.strategies'``).
            Default: Disables warnings from all modules.

    Úignore)r
   r   N)ÚwarningsÚfilterwarningsÚPossibleUserWarning)r
   s    ús/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/lightning_fabric/utilities/warnings.pyÚdisable_possible_user_warningsr      s#   € õ Ô˜H¨VÕ>QÐRÑRÔRÐRÐRÐRó    Úmessager   ÚfilenameÚlinenoÚlinec                 óv   — t          t          |¦  «        ¦  «        r|› d|› d| › d�S t          | ||||¦  «        S )zhCustom formatting that avoids an extra line in case warnings are emitted from the `rank_zero`-functions.ú:z: ú
)Ú_is_path_in_lightningr   Ú_default_format_warning)r   r   r   r   r   s        r   Ú_custom_format_warningr   (   sO   € õ �T (™^œ^Ñ,Ô,ð 3àÐ2Ð2˜VÐ2Ð2 wÐ2Ð2Ð2Ð2Ý" 7¨H°hÀÈÑMÔMÐMr   c                   ó   — e Zd ZdZdS )r   z'Warnings that could be false positives.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   r   r   5   s   € € € € € Ø1Ð1Ð1Ð1r   r   Úpathc                 óH   — dt          |                      ¦   «         ¦  «        v S )zJNaive check whether the path looks like a path from the lightning package.Ú	lightning)ÚstrÚabsolute)r$   s    r   r   r   9   s   € à�#˜dŸmšm™oœoÑ.Ô.Ð.Ð.r   )r	   )N)r"   r   Úpathlibr   Útypingr   r   Ú$lightning_fabric.utilities.rank_zeror   ÚsimplefilterÚformatwarningr   r'   r   ÚWarningÚtypeÚintr   ÚUserWarningr   Úboolr   r#   r   r   ú<module>r3      sr  ðð !Ð  à €€€Ø Ð Ð Ð Ð Ð Ø "Ð "Ð "Ð "Ð "Ð "Ð "Ð "à LÐ LÐ LÐ LÐ LÐ Lð €Ô �iÐ*EÐ FÑ FÔ FÐ FØ"Ô0Ð ð
Sð 
S¨3ð 
S¸ð 
Sð 
Sð 
Sð 
Sð nrðNð NØ�7˜C�<Ô ðNØ,0°¬MðNØEHðNØRUðNØ]eÐfiÔ]jðNàðNð Nð Nð Nð 0€Ô ð2ð 2ð 2ð 2ð 2˜+ñ 2ô 2ð 2ð/ ð /¨ð /ð /ð /ð /ð /ð /r   