§
    |Øj  ã                   óV   — 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d	S )
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                 óB   ‡ — ‰ 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   óF   •K  — | ]}t          ‰|j        ¦  «        ¯|V — Œd S )N)r   Úname)Ú.0Úencr   s     €úŽ/Users/tedpeters/Documents/Projects/Claude Projects/Misc Tools/notename-sheets/.venv/lib/python3.11/site-packages/chardet/pipeline/validity.pyú	<genexpr>z%filter_by_validity.<locals>.<genexpr>   s5   øè è € ÐTÐT˜Õ.CÀDÈ#Ì(Ñ.SÔ.SÐT�ÐTÐTÐTÐTÐTÐTó    )Útuple)r   r   s   ` r   Úfilter_by_validityr      s6   ø€ ð ð ØÐåÐTÐTÐTÐT 
ÐTÑTÔTÑTÔTÐTr   N)Ú__doc__Úchardet._utilsr   Úchardet.registryr   Úbytesr   r   © r   r   ú<module>r      sˆ   ððð ð 1Ð 0Ð 0Ð 0Ð 0Ð 0Ø )Ð )Ð )Ð )Ð )Ð )ðUØ
ðUØ" <°Ð#4Ô5ðUà
ˆ<˜ÐÔðUð Uð Uð Uð Uð Ur   