
    zi               $          U d Z ddlmZmZ ddlmZmZ ddlmZ ddl	m
Z
 ddlmZmZmZ ddlmZ ddlmZ  G d	 d
e          Z G d de          Zdej        iZeed<   ej        ej        hej        ej        hej        ej        ej        hej        ej        ej        ej        ej         ej        hej!        ej        ej        ej        ej         ej"        ej        hej#        ej        ej$        ej        ej        ej         ej"        ej        ej%        ej&        ej'        ej(        hej)        ej        ej$        ej        ej        ej         ej"        ej        ej%        ej*        ej&        ej'        ej(        ej+        hej,        ej        ej$        ej        ej        ej         ej"        ej        ej%        ej*        ej&        ej'        ej(        ej+        ej-        hej.        ej        ej$        ej        ej        ej         ej"        ej        ej%        ej*        ej&        ej'        ej(        ej+        ej-        ej/        ej0        hej1        ej        ej$        ej        ej        ej         ej"        ej        ej%        ej*        ej&        ej'        ej(        ej+        ej-        ej/        ej0        ej2        hi
Z3eeee         f         ed<   dee         dede4fdZ5 G d de          Z6 G d de7          Z8e G d d                      Z9dS )zData structures configuring Black behavior.

Mostly around Python language feature support per version and Black configuration
chosen by the user.
    )	dataclassfield)Enumauto)sha256)
attrgetter)DictFinalSet)warn)DEFAULT_LINE_LENGTHc                   6    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdS )TargetVersion                  	   
         N)__name__
__module____qualname__PY33PY34PY35PY36PY37PY38PY39PY310PY311PY312     U/var/www/tmov.alphamb/tmov_inventario/venv/lib/python3.11/site-packages/black/mode.pyr   r      s@        DDDDDDDEEEEEr(   r   c                   Z    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdS )Feature   r   r   r   r   r   r   r   r   r   r                     2   3   N)r   r   r   	F_STRINGSNUMERIC_UNDERSCORESTRAILING_COMMA_IN_CALLTRAILING_COMMA_IN_DEFASYNC_IDENTIFIERSASYNC_KEYWORDSASSIGNMENT_EXPRESSIONSPOS_ONLY_ARGUMENTSRELAXED_DECORATORSPATTERN_MATCHINGUNPACKING_ON_FLOWANN_ASSIGN_EXTENDED_RHSEXCEPT_STARVARIADIC_GENERICSDEBUG_F_STRINGSPARENTHESIZED_CONTEXT_MANAGERSTYPE_PARAMSFORCE_OPTIONAL_PARENTHESESFUTURE_ANNOTATIONSr'   r(   r)   r+   r+      s        I N KO%'"K!# r(   r+   annotationsFUTURE_FLAG_TO_FEATUREVERSION_TO_FEATUREStarget_versionsfeaturereturnc                 :    t          fd| D                       S )Nc              3   6   K   | ]}t           |         v V  d S N)rJ   ).0versionrL   s     r)   	<genexpr>z#supports_feature.<locals>.<genexpr>   s.      VV7w-g66VVVVVVr(   )all)rK   rL   s    `r)   supports_featurerU      s&    VVVVoVVVVVVr(   c                      e Zd ZdZ e            Z e            Z e            Z e            Z e            Z	 e            Z
 e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            Z e            ZdS )Previewz"Individual preview style features.N)r   r   r   __doc__r   add_trailing_comma_consistently"blank_line_after_nested_stub_class+blank_line_between_nested_and_def_stub_filehex_codes_in_unicode_sequences"improved_async_statements_handlingmultiline_string_handling$no_blank_line_before_class_docstring/prefer_splitting_right_hand_side_of_assignmentsstring_processing$parenthesize_conditional_expressionsparenthesize_long_type_hints+respect_magic_trailing_comma_in_return_type&skip_magic_trailing_comma_in_subscriptwrap_long_dict_values_in_parens(wrap_multiple_context_managers_in_parensdummy_implementationswalrus_subscriptmodule_docstring_newlinesaccept_raw_docstringsfix_power_op_line_length*hug_parens_with_braces_and_square_bracketsallow_empty_first_line_in_block.single_line_format_skip_with_multiple_commentslong_case_block_line_splittingallow_form_feedsrespect_east_asian_widthr'   r(   r)   rW   rW      sP       ,,&*dff#)-&26$&&/%)TVV")-& $+/466(6:dff3 +/466(#'466 26$&&/-1TVV*&*dff#/3tvv, DFFtvv $ DFF#tvv15.&*dff#59TVV2%)TVV"tvv#tvvr(   rW   c                       e Zd ZdZdS )
DeprecatedzVisible deprecation warning.N)r   r   r   rX   r'   r(   r)   rt   rt      s        &&&&r(   rt   c                       e Zd ZU  ee          Zee         ed<   e	Z
eed<   dZeed<   dZeed<   dZeed<   dZeed	<   dZeed
<   dZeed<    ee          Zee         ed<   dZeed<   ddZdedefdZdefdZdS )Mode)default_factoryrK   line_lengthTstring_normalizationFis_pyiis_ipynbskip_source_first_linemagic_trailing_commaexperimental_string_processingpython_cell_magicspreviewrM   Nc                 B    | j         rt          dt                     d S d S )Nzf`experimental string processing` has been included in `preview` and deprecated. Use `preview` instead.)r~   r   rt   )selfs    r)   __post_init__zMode.__post_init__   s;    . 	:    	 	r(   rL   c                 H    |t           j        u r| j        p| j        S | j        S )z
        Provide `Preview.FEATURE in Mode` syntax that mirrors the ``preview`` flag.

        The argument is not checked and features are not differentiated.
        They only exist to make development easier by clarifying intent.
        )rW   ra   r   r~   )r   rL   s     r)   __contains__zMode.__contains__   s*     g///<F4#FF|r(   c                 Z   | j         rAd                    d t          | j         t          d                    D                       }nd}|t	          | j                  t	          t          | j                            t	          t          | j                            t	          t          | j	                            t	          t          | j
                            t	          t          | j                            t	          t          | j                            t	          t          | j                            t          d                    t          | j                                                                                                      g
}d                    |          S )N,c              3   >   K   | ]}t          |j                  V  d S rP   )strvalue)rQ   rR   s     r)   rS   z%Mode.get_cache_key.<locals>.<genexpr>   s@       # # GM""# # # # # #r(   r   )key-.)rK   joinsortedr   r   rx   intry   rz   r{   r|   r}   r~   r   r   r   encode	hexdigest)r   version_strpartss      r)   get_cache_keyzMode.get_cache_key   sX    	(( # #%d&:
7@S@STTT# # #  KK
 K !!D-..//DK  !!DM""##D/0011D-..//D78899DL!!""CHHVD$;<<==EEGGHHRRTT
 xxr(   )rM   N)r   r   r   r   setrK   r   r   __annotations__r   rx   r   ry   boolrz   r{   r|   r}   r~   r   r   r   r   rW   r   r   r'   r(   r)   rv   rv      s/        */%*D*D*DOS'DDD*K***!%$%%%FDHd#(D(((!%$%%%+0"D000#(5#=#=#=C===GT   	G 	 	 	 	 	s      r(   rv   N):rX   dataclassesr   r   enumr   r   hashlibr   operatorr   typingr	   r
   r   warningsr   black.constr   r   r+   rG   rI   r   r   r9   r   r   r7   r    r5   r6   r8   r!   r:   r"   rC   r;   r<   r?   r@   r#   r=   rD   r$   r>   r%   rA   rB   r&   rE   rJ   r   rU   rW   UserWarningrt   rv   r'   r(   r)   <module>r      s     ) ( ( ( ( ( ( (                     # # # # # # # # # #       + + + + + +
 
 
 
 
D 
 
 
    d   6 7-!     232379RS#&%! #&%" #&%"&"!' #&%"&""!'. #&%"&""!'.   #&%"&""!'. !!$ #&%"&""!'. !#cd: T-W56 d d dNWc-&8 W7 Wt W W W W& & & & &d & & &B' ' ' ' ' ' ' ' 3 3 3 3 3 3 3 3 3 3r(   