
    ޺i	                    *   % S r SSKJr  SSKrSSKJr  SSKJr  SrS\S'   \	" \
" S	S
5      5      rS\S'   \	" SSS/\
" SS5      Q5      rS\S'    " S S\5      r\R                  " SSS9 " S S5      5       r\R                  " SS9 " S S5      5       rg)z+Detection pipeline stages and shared types.    )annotationsN)field)	TypedDictgffffff?floatDETERMINISTIC_CONFIDENCE      bytes
HIGH_BYTES	   
             ASCII_TEXT_BYTESc                  8    \ rS rSr% SrS\S'   S\S'   S\S'   Srg	)
DetectionDict   zDictionary representation of a detection result.

Returned by :func:`chardet.detect`, :func:`chardet.detect_all`,
and :attr:`chardet.UniversalDetector.result`.

str | Noneencodingr   
confidencelanguage N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__r       X/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/chardet/pipeline/__init__.pyr   r      s     r!   r   T)frozenslotsc                  B    \ rS rSr% SrS\S'   S\S'   S\S'   SS jrS	rg
)DetectionResult$   zA single encoding detection result.

Frozen dataclass holding the encoding name, confidence score, and
optional language identifier returned by the detection pipeline.
r   r   r   r   r   c                J    U R                   U R                  U R                  S.$ )zwConvert this result to a plain dict.

:returns: A dict with ``'encoding'``, ``'confidence'``, and ``'language'`` keys.
r   r   r   r)   )selfs    r"   to_dictDetectionResult.to_dict0   s#     //
 	
r!   r   N)returnr   )r   r   r   r   r   r   r+   r    r   r!   r"   r&   r&   $   s      	
r!   r&   )r$   c                  j    \ rS rSr% Sr\" \S9rS\S'   Sr	S\S'   \" \S9r
S	\S
'   \" \S9rS	\S'   Srg)PipelineContext<   a  Per-run mutable state for a single pipeline invocation.

Created once at the start of ``run_pipeline()`` and threaded through
the call chain via function parameters.  Each concurrent ``detect()``
call gets its own context, eliminating the need for module-level
mutable caches.
)default_factoryz!dict[str, tuple[float, int, int]]analysis_cacheNz
int | Nonenon_ascii_countzdict[str, float]	mb_scoresmb_coverager   )r   r   r   r   r   r   dictr2   r   r3   r4   r5   r    r   r!   r"   r/   r/   <   sC     9>d8SN5S"&OZ&"'"=I=$)$$?K!?r!   r/   )r   
__future__r   dataclassesr   typingr   r   r   r
   ranger   r   r   	dataclassr&   r/   r   r!   r"   <module>r<      s    1 "   
 #' % & %e,-
E -
  tT FE$4E FG % G	I 	 d$/
 
 0
. T"@ @ #@r!   