
    ޺i                     >    S r SSKJr  S\S\\S4   S\\S4   4S jrg)	zStage 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.
    )EncodingInfodata
candidates.returnc                     U (       d  U$ / nU H/  n U R                  UR                  SS9  UR                  U5        M1     [        U5      $ ! [        [        4 a     MQ  f = f)zFilter 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*.
strict)errors)decodenameappendUnicodeDecodeErrorLookupErrortuple)r   r   validencs       X/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/chardet/pipeline/validity.pyfilter_by_validityr      sf     E	KKK2LL  < #K0 		s   +AA A N)__doc__chardet.registryr   bytesr   r        r   <module>r      s@    *
"<#45
<r   