Ë
    Dü´j  ã                   óH   — d Z ddlmZ ddlmZ dedeedf   deedf   fd„Zy	)
zÒStage 2a: Byte sequence validity filtering.

Note: ``from __future__ import annotations`` is intentionally omitted because
this module is compiled with mypyc, which does not support PEP 563 string
annotations.
é    )Údecodes_without_error)ÚEncodingInfoÚdataÚ
candidates.Úreturnc                 ó4   ‡ — ‰ s|S t        ˆ fd„|D «       «      S )zïFilter candidates to only those where *data* decodes without errors.

    :param data: The raw byte data to test.
    :param candidates: Encoding candidates to validate.
    :returns: The subset of *candidates* that can decode *data*.
    c              3   óP   •K  — | ]  }t        ‰|j                  «      sŒ|–— Œ y ­w)N)r   Úname)Ú.0Úencr   s     €úW/root/workspace/ytshorts/venv/lib/python3.12/site-packages/chardet/pipeline/validity.pyú	<genexpr>z%filter_by_validity.<locals>.<genexpr>   s   øè ø€ ÒT˜Ô.CÀDÈ#Ï(É(Õ.S”ÑTùs   ƒ&Ÿ&)Útuple)r   r   s   ` r   Úfilter_by_validityr      s   ø€ ñ ØÐäÓT 
ÔTÓTÐTó    N)Ú__doc__Úchardet._utilsr   Úchardet.registryr   Úbytesr   r   © r   r   ú<module>r      sG   ðñõ 1Ý )ðUØ
ðUØ" <°Ð#4Ñ5ðUà
ˆ<˜ÐÑôUr   