o
    ¦ÜÓhó'  ã                   @   sæ  d Z G dd„ dƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG d	d
„ d
eƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd „ d eƒZG d!d"„ d"eƒZG d#d$„ d$eƒZG d%d&„ d&eƒZG d'd(„ d(eƒZG d)d*„ d*eƒZG d+d,„ d,eƒZG d-d.„ d.eƒZG d/d0„ d0eƒZG d1d2„ d2eƒZG d3d4„ d4eƒZG d5d6„ d6eƒZG d7d8„ d8eƒZG d9d:„ d:eƒZG d;d<„ d<eƒZG d=d>„ d>eƒZG d?d@„ d@eƒZ G dAdB„ dBeƒZ!G dCdD„ dDeƒZ"G dEdF„ dFeƒZ#G dGdH„ dHeƒZ$G dIdJ„ dJeƒZ%G dKdL„ dLeƒZ&G dMdN„ dNeƒZ'G dOdP„ dPeƒZ(G dQdR„ dReƒZ)G dSdT„ dTeƒZ*G dUdV„ dVeƒZ+G dWdX„ dXeƒZ,G dYdZ„ dZeƒZ-G d[d\„ d\eƒZ.d]S )^z/
Provide the class Message and its subclasses.
c                   @   s$   e Zd ZdZdZdd„ Zdd„ ZdS )ÚMessageÚ © c                 C   s   || _ |j| _|j| _d S ©N)ÚfilenameÚlinenoÚ
col_offsetÚcol)Úselfr   Úlocr   r   úG/var/www/html/ai/venv/lib/python3.10/site-packages/pyflakes/messages.pyÚ__init__
   s   zMessage.__init__c                 C   s"   d  | j| j| jd | j| j ¡S )Nz{}:{}:{}: {}é   )Úformatr   r   r   ÚmessageÚmessage_args)r	   r   r   r   Ú__str__   s   
ÿzMessage.__str__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r      s
    r   c                   @   ó   e Zd ZdZdd„ ZdS )ÚUnusedImportz%r imported but unusedc                 C   ó   t  | ||¡ |f| _d S r   ©r   r   r   ©r	   r   r
   Únamer   r   r   r      ó   zUnusedImport.__init__N©r   r   r   r   r   r   r   r   r   r      ó    r   c                   @   r   )ÚRedefinedWhileUnusedz&redefinition of unused %r from line %rc                 C   ó   t  | ||¡ ||jf| _d S r   ©r   r   r   r   ©r	   r   r
   r   Úorig_locr   r   r   r      ó   zRedefinedWhileUnused.__init__Nr   r   r   r   r   r      r   r   c                   @   r   )ÚImportShadowedByLoopVarz0import %r from line %r shadowed by loop variablec                 C   r   r   r    r!   r   r   r   r   '   r#   z ImportShadowedByLoopVar.__init__Nr   r   r   r   r   r$   $   r   r$   c                   @   r   )ÚImportStarNotPermittedz/'from %s import *' only allowed at module levelc                 C   r   r   r   ©r	   r   r
   Úmodnamer   r   r   r   /   r   zImportStarNotPermitted.__init__Nr   r   r   r   r   r%   ,   r   r%   c                   @   r   )ÚImportStarUsedz9'from %s import *' used; unable to detect undefined namesc                 C   r   r   r   r&   r   r   r   r   7   r   zImportStarUsed.__init__Nr   r   r   r   r   r(   4   r   r(   c                   @   r   )ÚImportStarUsagez5%r may be undefined, or defined from star imports: %sc                 C   ó   t  | ||¡ ||f| _d S r   r   )r	   r   r
   r   Ú	from_listr   r   r   r   ?   ó   zImportStarUsage.__init__Nr   r   r   r   r   r)   <   r   r)   c                   @   r   )ÚUndefinedNamezundefined name %rc                 C   r   r   r   r   r   r   r   r   G   r   zUndefinedName.__init__Nr   r   r   r   r   r-   D   r   r-   c                   @   s   e Zd ZdZddd„ZdS )ÚDoctestSyntaxErrorzsyntax error in doctestNc                 C   s(   t  | ||¡ |r|\| _| _d| _d S )Nr   )r   r   r   r   r   )r	   r   r
   Úpositionr   r   r   r   O   s   
zDoctestSyntaxError.__init__r   r   r   r   r   r   r.   L   s    r.   c                   @   r   )ÚUndefinedExportzundefined name %r in __all__c                 C   r   r   r   r   r   r   r   r   Y   r   zUndefinedExport.__init__Nr   r   r   r   r   r0   V   r   r0   c                   @   s    e Zd ZdZdZdZdd„ ZdS )ÚUndefinedLocalz2local variable %r {0} referenced before assignmentz%defined in enclosing scope on line %rzdefined as a builtinc                 C   sP   t  | ||¡ |d u r| j | j¡| _|| _d S | j | j¡| _||jf| _d S r   )r   r   r   r   Úbuiltinr   Údefaultr   r!   r   r   r   r   d   s   
zUndefinedLocal.__init__N)r   r   r   r   r3   r2   r   r   r   r   r   r1   ^   s
    r1   c                   @   r   )ÚDuplicateArgumentz,duplicate argument %r in function definitionc                 C   r   r   r   r   r   r   r   r   q   r   zDuplicateArgument.__init__Nr   r   r   r   r   r4   n   r   r4   c                   @   r   )ÚMultiValueRepeatedKeyLiteralz0dictionary key %r repeated with different valuesc                 C   r   r   r   ©r	   r   r
   Úkeyr   r   r   r   y   r   z%MultiValueRepeatedKeyLiteral.__init__Nr   r   r   r   r   r5   v   r   r5   c                   @   r   )ÚMultiValueRepeatedKeyVariablez9dictionary key variable %s repeated with different valuesc                 C   r   r   r   r6   r   r   r   r      r   z&MultiValueRepeatedKeyVariable.__init__Nr   r   r   r   r   r8   ~   r   r8   c                   @   ó   e Zd ZdZdS )ÚLateFutureImportz?from __future__ imports must occur at the beginning of the fileN©r   r   r   r   r   r   r   r   r:   †   ó    r:   c                   @   ó   e Zd ZdZdZdd„ ZdS )ÚFutureFeatureNotDefinedz2An undefined __future__ feature name was imported.z future feature %s is not definedc                 C   r   r   r   r   r   r   r   r   Ž   r   z FutureFeatureNotDefined.__init__N©r   r   r   Ú__doc__r   r   r   r   r   r   r>   Š   s    r>   c                   @   r=   )ÚUnusedVariablez^
    Indicates that a variable has been explicitly assigned to but not actually
    used.
    z/local variable %r is assigned to but never usedc                 C   r   r   r   ©r	   r   r
   Únamesr   r   r   r   š   r   zUnusedVariable.__init__Nr?   r   r   r   r   rA   “   ó    rA   c                   @   r=   )ÚUnusedAnnotationz_
    Indicates that a variable has been explicitly annotated to but not actually
    used.
    z-local variable %r is annotated but never usedc                 C   r   r   r   rB   r   r   r   r   ¦   r   zUnusedAnnotation.__init__Nr?   r   r   r   r   rE   Ÿ   rD   rE   c                   @   ó   e Zd ZdZdZdS )ÚReturnOutsideFunctionzD
    Indicates a return statement outside of a function/method.
    z'return' outside functionN©r   r   r   r@   r   r   r   r   r   rG   «   ó    rG   c                   @   rF   )ÚYieldOutsideFunctionzQ
    Indicates a yield or yield from statement outside of a function/method.
    z'yield' outside functionNrH   r   r   r   r   rJ   ²   rI   rJ   c                   @   rF   )ÚContinueOutsideLoopzH
    Indicates a continue statement outside of a while or for loop.
    z'continue' not properly in loopNrH   r   r   r   r   rK   »   rI   rK   c                   @   rF   )ÚBreakOutsideLoopzE
    Indicates a break statement outside of a while or for loop.
    z'break' outside loopNrH   r   r   r   r   rL   Â   rI   rL   c                   @   rF   )ÚDefaultExceptNotLastzG
    Indicates an except: block as not the last exception handler.
    zdefault 'except:' must be lastNrH   r   r   r   r   rM   É   rI   rM   c                   @   rF   )ÚTwoStarredExpressionszK
    Two or more starred expressions in an assignment (a, *b, *c = d).
    z%two starred expressions in assignmentNrH   r   r   r   r   rN   Ð   rI   rN   c                   @   rF   )Ú%TooManyExpressionsInStarredAssignmentzC
    Too many expressions in an assignment with star-unpacking
    z1too many expressions in star-unpacking assignmentNrH   r   r   r   r   rO   ×   rI   rO   c                   @   rF   )ÚIfTuplezO
    Conditional test is a non-empty tuple literal, which are always True.
    zC'if tuple literal' is always true, perhaps remove accidental comma?NrH   r   r   r   r   rP   Þ   rI   rP   c                   @   rF   )ÚAssertTuplezM
    Assertion test is a non-empty tuple literal, which are always True.
    z5assertion is always true, perhaps remove parentheses?NrH   r   r   r   r   rQ   å   rI   rQ   c                   @   r   )ÚForwardAnnotationSyntaxErrorz%syntax error in forward annotation %rc                 C   r   r   r   )r	   r   r
   Ú
annotationr   r   r   r   ï   r   z%ForwardAnnotationSyntaxError.__init__Nr   r   r   r   r   rR   ì   r   rR   c                   @   r9   )ÚRaiseNotImplementedz<'raise NotImplemented' should be 'raise NotImplementedError'Nr;   r   r   r   r   rT   ô   r<   rT   c                   @   r9   )ÚInvalidPrintSyntaxz(use of >> is invalid with print functionNr;   r   r   r   r   rU   ø   r<   rU   c                   @   r9   )Ú	IsLiteralzFuse ==/!= to compare constant literals (str, bytes, int, float, tuple)Nr;   r   r   r   r   rV   ü   r<   rV   c                   @   r9   )ÚFStringMissingPlaceholdersz f-string is missing placeholdersNr;   r   r   r   r   rW      r<   rW   c                   @   r   )Ú'StringDotFormatExtraPositionalArgumentsz9'...'.format(...) has unused arguments at position(s): %sc                 C   r   r   r   )r	   r   r
   Úextra_positionsr   r   r   r     r   z0StringDotFormatExtraPositionalArguments.__init__Nr   r   r   r   r   rX     r   rX   c                   @   r   )Ú"StringDotFormatExtraNamedArgumentsz2'...'.format(...) has unused named argument(s): %sc                 C   r   r   r   ©r	   r   r
   Úextra_keywordsr   r   r   r     r   z+StringDotFormatExtraNamedArguments.__init__Nr   r   r   r   r   rZ     r   rZ   c                   @   r   )ÚStringDotFormatMissingArgumentz?'...'.format(...) is missing argument(s) for placeholder(s): %sc                 C   r   r   r   ©r	   r   r
   Úmissing_argumentsr   r   r   r     r   z'StringDotFormatMissingArgument.__init__Nr   r   r   r   r   r]     r   r]   c                   @   r9   )ÚStringDotFormatMixingAutomaticz6'...'.format(...) mixes automatic and manual numberingNr;   r   r   r   r   r`     r<   r`   c                   @   r   )ÚStringDotFormatInvalidFormatz/'...'.format(...) has invalid format string: %sc                 C   r   r   r   ©r	   r   r
   Úerrorr   r   r   r   #  r   z%StringDotFormatInvalidFormat.__init__Nr   r   r   r   r   ra      r   ra   c                   @   r   )ÚPercentFormatInvalidFormatz*'...' %% ... has invalid format string: %sc                 C   r   r   r   rb   r   r   r   r   +  r   z#PercentFormatInvalidFormat.__init__Nr   r   r   r   r   rd   (  r   rd   c                   @   r9   )Ú$PercentFormatMixedPositionalAndNamedz8'...' %% ... has mixed positional and named placeholdersNr;   r   r   r   r   re   0  r<   re   c                   @   r   )Ú'PercentFormatUnsupportedFormatCharacterz0'...' %% ... has unsupported format character %rc                 C   r   r   r   )r	   r   r
   Úcr   r   r   r   7  r   z0PercentFormatUnsupportedFormatCharacter.__init__Nr   r   r   r   r   rf   4  r   rf   c                   @   r   )Ú$PercentFormatPositionalCountMismatchz9'...' %% ... has %d placeholder(s) but %d substitution(s)c                 C   r*   r   r   )r	   r   r
   Ún_placeholdersÚn_substitutionsr   r   r   r   ?  r,   z-PercentFormatPositionalCountMismatch.__init__Nr   r   r   r   r   rh   <  r   rh   c                   @   r   )Ú PercentFormatExtraNamedArgumentsz-'...' %% ... has unused named argument(s): %sc                 C   r   r   r   r[   r   r   r   r   G  r   z)PercentFormatExtraNamedArguments.__init__Nr   r   r   r   r   rk   D  r   rk   c                   @   r   )ÚPercentFormatMissingArgumentz:'...' %% ... is missing argument(s) for placeholder(s): %sc                 C   r   r   r   r^   r   r   r   r   O  r   z%PercentFormatMissingArgument.__init__Nr   r   r   r   r   rl   L  r   rl   c                   @   r9   )ÚPercentFormatExpectedMappingz.'...' %% ... expected mapping but got sequenceNr;   r   r   r   r   rm   T  r<   rm   c                   @   r9   )ÚPercentFormatExpectedSequencez.'...' %% ... expected sequence but got mappingNr;   r   r   r   r   rn   X  r<   rn   c                   @   r9   )Ú!PercentFormatStarRequiresSequencez,'...' %% ... `*` specifier requires sequenceNr;   r   r   r   r   ro   \  r<   ro   N)/r@   r   r   r   r$   r%   r(   r)   r-   r.   r0   r1   r4   r5   r8   r:   r>   rA   rE   rG   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rT   rU   rV   rW   rX   rZ   r]   r`   ra   rd   re   rf   rh   rk   rl   rm   rn   ro   r   r   r   r   Ú<module>   s^    
		