
    X-Ph,                    H   U d Z ddlmZ ddlmZ ddlmZ ddlmZ i Z	de
d<    ee          Zde
d	<    ed
           G d d                      Z eddd          Zde
d<    eddd          Zde
d<    eddd          Zde
d<    eddd          Zde
d<    eddd          Zde
d<    ed d!d          Zde
d"<    ed#d$d          Zde
d%<    ed&d'd          Zde
d(<    ed)d*d          Zde
d+<    ed,d-d          Zde
d.<    ed/d0d          Zde
d1<    ed2d3de4          Zde
d5<    ed6d7d          Zde
d8<    ed9d:d          Zde
d;<    ed<d=d          Zde
d><    ed?d@d          Zde
dA<    edBdCd          Zde
dD<    edEdFd          Zde
dG<    edHdId          Z de
dJ<    edKdLd          Z!de
dM<    edNdOde!4          Z"de
dP<    edQdRd          Z#de
dS<    edTdUd          Z$de
dV<    edWdXde$4          Z%de
dY<    edZd[de$4          Z&de
d\<    ed]d^d          Z'de
d_<    ed`dad          Z(de
db<    edcddd          Z)de
de<    edfdgd          Z*de
dh<    edidjd          Z+de
dk<    edldmd          Z,de
dn<    edodpd          Z-de
dq<    edrdsd          Z.de
dt<    edudvd          Z/de
dw<    edxdyd          Z0de
dz<    ed{d|d          Z1de
d}<    ed~dd          Z2de
d<    eddd          Z3de
d<    eddd          Z4de
d<    eddd          Z5de
d<    eddd          Z6de
d<    eddd          Z7de
d<    eddd          Z8de
d<    eddd          Z9de
d<    eddd          Z:de
d<    eddd          Z;de
d<    eddd          Z<de
d<    eddd          Z= eddd          Z> edddd          Z?de
d<    edddd          Z@de
d<    edddd          ZAde
d<    eddd          ZBde
d<    edddd          ZCde
d<    eddd          ZDde
d<    eddd          ZEde
d<    edddd          ZFde
d<    edddd          ZGde
d<    edddd          ZH eddd          ZIde
d<    edddd          ZJde
d<    edddd          ZKde
d<    edddd          ZLde
d<    edddd          ZMde
d<    eddd          ZNde
d<    eddd          ZOde
d<   e	eOjP        =  eddd          ZQde
d<    edddeQ4          ZRde
d<    edddeQ4          ZSde
d<    edddeQ4          ZT eddd          ZUde
d<    eddd          ZVde
d<    edddd          ZWde
d<   e	X                                ZYdS )zeClassification of possible errors mypy can detect.

These can be used for filtering specific errors.
    )annotations)defaultdict)Final)
mypyc_attrzdict[str, ErrorCode]error_codeszdict[str, set[str]]sub_code_mapT)allow_interpreted_subclassesc                  4    e Zd Z	 	 dddZddZddZddZdS )	ErrorCodeTNcodestrdescriptioncategorydefault_enabledboolsub_code_ofErrorCode | NonereturnNonec                    || _         || _        || _        || _        || _        |6|j        
J d            t
          |j                                      |           | t          |<   d S )Nz&Nested subcategories are not supported)r   r   r   r   r   r   addr   )selfr   r   r   r   r   s         O/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/mypy/errorcodes.py__init__zErrorCode.__init__   st     	& .&"*224\222)*..t444 D    c                    d| j          dS )Nz<ErrorCode >)r   r   s    r   __str__zErrorCode.__str__%   s    )TY))))r   otherobjectc                P    t          |t                    sdS | j        |j        k    S )NF)
isinstancer   r   )r   r    s     r   __eq__zErrorCode.__eq__(   s(    %++ 	5yEJ&&r   intc                ,    t          | j        f          S )N)hashr   r   s    r   __hash__zErrorCode.__hash__-   s    TYL!!!r   )TN)r   r   r   r   r   r   r   r   r   r   r   r   )r   r   )r    r!   r   r   )r   r%   )__name__
__module____qualname__r   r   r$   r(    r   r   r   r      sq         !%(,! ! ! ! !$* * * *' ' ' '
" " " " " "r   r   zattr-definedzCheck that attribute existsGeneralr   ATTR_DEFINEDzname-definedzCheck that name is definedNAME_DEFINEDzcall-argz3Check number, names and kinds of arguments in callszFinal[ErrorCode]CALL_ARGzarg-typezCheck argument types in callsARG_TYPEzcall-overloadz0Check that an overload variant matches argumentsCALL_OVERLOADz
valid-typez%Check that type (annotation) is valid
VALID_TYPEzvar-annotatedz5Require variable annotation if type can't be inferredVAR_ANNOTATEDoverridez8Check that method override is compatible with base classOVERRIDEr   z*Check that function always returns a valueRETURNzreturn-valuez4Check that return value is compatible with signatureRETURN_VALUE
assignmentz3Check that assigned value is compatible with target
ASSIGNMENTzmethod-assignz,Check that assignment target is not a method)r   METHOD_ASSIGNztype-argz-Check that generic type arguments are presentTYPE_ARGztype-varz)Check that type variable values are validTYPE_VARz
union-attrz3Check that attribute exists in each item of a union
UNION_ATTRindexzCheck indexing operationsINDEXoperatorz)Check that operator is valid for operandsOPERATORz	list-itemz1Check list items in a list expression [item, ...]	LIST_ITEMz	dict-itemz7Check dict items in a dict expression {key: value, ...}	DICT_ITEMztypeddict-itemz'Check items when constructing TypedDictTYPEDDICT_ITEMztypeddict-unknown-keyz.Check unknown keys when constructing TypedDictTYPEDDICT_UNKNOWN_KEYzhas-typez.Check that type of reference can be determinedHAS_TYPEimportz6Require that imported module can be found or has stubsIMPORTzimport-not-foundz)Require that imported module can be foundIMPORT_NOT_FOUNDzimport-untypedz&Require that imported module has stubsIMPORT_UNTYPEDzno-redefz$Check that each name is defined onceNO_REDEFzfunc-returns-valuez;Check that called function returns a value in value contextFUNC_RETURNS_VALUEabstractz9Prevent instantiation of classes with abstract attributesABSTRACTztype-abstractz9Require only concrete classes where Type[...] is expectedTYPE_ABSTRACTzvalid-newtypez)Check that argument 2 to NewType is validVALID_NEWTYPEz
str-formatz7Check that string formatting/interpolation is type-safeSTRING_FORMATTINGzstr-bytes-safez?Warn about implicit coercions related to bytes and string typesSTR_BYTES_PY3zexit-returnz1Warn about too general return type for '__exit__'EXIT_RETURNzliteral-requiredzCheck that value is a literalLITERAL_REQzunused-coroutinez#Ensure that all coroutines are usedUNUSED_COROUTINEz
empty-bodyzHA dedicated error code to opt out return errors for empty/trivial bodies
EMPTY_BODYz
safe-superz>Warn about calls to abstract methods with empty/trivial bodies
SAFE_SUPERztop-level-awaitz&Warn about top level await expressionsTOP_LEVEL_AWAITzawait-not-asyncz2Warn about "await" outside coroutine ("async def")AWAIT_NOT_ASYNCzno-untyped-defz+Check that every function has an annotationNO_UNTYPED_DEFzno-untyped-callzLDisallow calling functions without type annotations from annotated functionsNO_UNTYPED_CALLzredundant-castz*Check that cast changes type of expressionREDUNDANT_CASTzassert-typez&Check that assert_type() call succeedsASSERT_TYPEzcomparison-overlapz<Check that types in comparisons and 'in' expressions overlapCOMPARISON_OVERLAPzno-any-unimportedz*Reject "Any" types from unfollowed importsNO_ANY_UNIMPORTEDzno-any-returnzBReject returning value with "Any" type if return type is not "Any"NO_ANY_RETURNunreachablez0Warn about unreachable statements or expressionsUNREACHABLEzannotation-uncheckedz4Notify about type annotations in unchecked functionsztypeddict-readonly-mutatedz#TypedDict's ReadOnly key is mutatedzpossibly-undefinedzBWarn about variables that are defined only in some execution pathsF)r   POSSIBLY_UNDEFINEDzredundant-exprz Warn about redundant expressionsREDUNDANT_EXPRztruthy-boolzMWarn about expressions that could always evaluate to true in boolean contextsTRUTHY_BOOLztruthy-functionzDWarn about function that always evaluate to true in boolean contextsTRUTHY_FUNCTIONztruthy-iterablezVWarn about Iterable expressions that could always evaluate to true in boolean contextsTRUTHY_ITERABLEz
name-matchz0Check that type definition has consistent naming
NAME_MATCHzno-overload-implzICheck that overloaded functions outside stub files have an implementationNO_OVERLOAD_IMPLzignore-without-codezBWarn about '# type: ignore' comments which do not have error codesIGNORE_WITHOUT_CODEzunused-awaitablez)Ensure that all awaitable values are usedUNUSED_AWAITABLEzredundant-selfzCWarn about redundant Self type annotations on method first argumentzused-before-defz:Warn about variables that are used before they are definedUSED_BEFORE_DEFzunused-ignorez%Ensure that all type ignores are usedUNUSED_IGNOREzexplicit-overridezGRequire @override decorator if method is overriding a base class methodEXPLICIT_OVERRIDE_REQUIREDzunimported-revealzHRequire explicit import from typing or typing_extensions for reveal_typeUNIMPORTED_REVEALzmutable-overridez1Reject covariant overrides for mutable attributesMUTABLE_OVERRIDEsyntaxzReport syntax errorsSYNTAXfilez.Internal marker for a whole file being ignoredFILEmisczMiscellaneous other checksMISCzoverload-cannot-matchz3Warn if an @overload signature can never be matchedOVERLOAD_CANNOT_MATCHzoverload-overlapz:Warn if multiple @overload variants overlap in unsafe waysOVERLOAD_OVERLAPzprop-decoratorz0Decorators on top of @property are not supportedznarrowed-type-not-subtypezOWarn if a TypeIs function's narrowed type is not a subtype of the original typeNARROWED_TYPE_NOT_SUBTYPEzexplicit-anyz(Warn about explicit Any type annotationsEXPLICIT_ANY
deprecatedzRWarn when importing or using deprecated (overloaded) functions, methods or classes
DEPRECATEDN)Z__doc__
__future__r   collectionsr   typingr   mypy_extensionsr   r   __annotations__setr   r   r.   r/   r0   r1   r2   r3   r4   r6   r7   r8   r:   r;   r<   r=   r>   r@   rB   rC   rD   rE   rF   rG   rI   rJ   rK   rL   rM   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rc   ANNOTATION_UNCHECKEDTYPEDDICT_READONLY_MUTATEDrd   re   rf   rg   rh   ri   rj   rk   rl   REDUNDANT_SELF_TYPErm   rn   ro   rp   rq   rs   ru   r   rw   rx   ry   PROPERTY_DECORATORrz   r{   r}   copymypy_error_codesr,   r   r   <module>r      s    
 # " " " " " # # # # # #       & & & & & &$& & & & &$/K$4$4 4 4 4 4 ..." " " " " " " /.">  i0MyYY Y Y Y Yi0LiXX X X X X&YEy      )J(GSS S S S S yG       )y99   
     !yLi      )JI      %9:I      "+JI" "      )yG   
     #,)2	# # #     )J(WYbcc c c c c)J(SU^__ _ _ _ _IG 
     y"=yII I I I I)J(SU^__ _ _ _ _9Di 	     9JI 	     "	?       )y4	           )@)      	F	      $)CY\b        "	>	W]       )J(NPYZZ Z Z Z Z%IWYb       )KY      !yPR[      !y@)      %9KY       !yWYb      YF	      Y13RT]^^ ^ ^ ^ ^#)=y      
  )yN   
    
 IRT] 
     #?      #KY      $-9CY$ $     #R     
 "	BI      Y}.VXabb b b b b%IXZc       %9Ey       !yH     
 YEy      !yRT]   'Y "G   (1yH	( ( (      "	8)UZ       !*	S	! ! !     %.IJ% %    
 %.I\	% % %     IDi 
     $)O      
 'YH	        $)/	         iI	    %.ISU^% %     !y<iY^       %.IM	% % %      %9N	        &/Y7	& & &      %9X/EyQQ Q Q Q Q i PR[\\ \ \ \ \	 #6+GSS S S S S*3)9	+ + +      &/Y@	& & &      Y6	    /8iU/ /       i>	      IX	  
     ##%%   r   