o
    tBh                     @  s   U d Z ddlmZ ddlmZ i Zded< G d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)d*d
Zded+< ed,d-d
Zded.< ed/d0d
Zded1< ed2d3d
Zded4< ed5d6d
Zded7< ed8d9d
Zded:< ed;d<d
Zded=< ed>d?d
Zded@< edAdBd
ZdedC< edDdEd
ZdedF< edGdHd
ZdedI< edJdKd
ZdedL< edMdNd
ZdedO< edPdQd
ZdedR< edSdTd
Z dedU< edVdWd
Z!dedX< edYdZd
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
Z)dedp< edqdrd
Z*deds< edtdud
Z+dedv< edwdxd
Z,dedy< edzd{d
Z-ded|< ed}d~d
ddZ.ded< eddd
ddZ/ded< eddd
Z0ded< eddd
Z1ded< eddd
ddZ2ded< eddd
ddZ3ded< eddd
Z4ded< eddd
Z5ded< ee5j6= eddd
Z7ded< dS )zeClassification of possible errors mypy can detect.

These can be used for filtering specific errors.
    )annotations)Finalzdict[str, ErrorCode]error_codesc                   @  s$   e Zd Z	ddd
dZdddZdS )	ErrorCodeTcodestrdescriptioncategorydefault_enabledboolreturnNonec                 C  s$   || _ || _|| _|| _| t|< d S )N)r   r   r	   r
   r   )selfr   r   r	   r
    r   f/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/mypy/errorcodes.py__init__   s
   zErrorCode.__init__c                 C  s   d| j  dS )Nz<ErrorCode >)r   )r   r   r   r   __str__   s   zErrorCode.__str__N)T)
r   r   r   r   r	   r   r
   r   r   r   )r   r   )__name__
__module____qualname__r   r   r   r   r   r   r      s    	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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has-typez.Check that type of reference can be determinedHAS_TYPEimportz6Require that imported module can be found or has stubsIMPORTz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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 dangerous 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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redundant-exprz Warn about redundant expressionsF)r
   REDUNDANT_EXPRztruthy-boolzMWarn about expressions that could always evaluate to true in boolean contextsTRUTHY_BOOLz
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_AWAITABLEsyntaxzReport syntax errorsSYNTAXfilez.Internal marker for a whole file being ignoredFILEmisczMiscellaneous other checksMISCN)8__doc__
__future__r   typing_extensionsr   r   __annotations__r   r   r   r   r   r   r   r   r    r!   r"   r$   r%   r&   r'   r)   r+   r,   r-   r.   r/   r1   r2   r3   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rD   rE   rF   rG   rH   rI   rJ   rL   rN   r   rP   r   r   r   r   <module>   s   	