o
    9D©iª)  ã                   @   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.G d]d^„ d^eƒZ/G d_d`„ d`eƒZ0daS )bz/
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   úJ/var/www/Datamplify/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>   Š   ó    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   rB   “   ó    rB   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   rC   r   r   r   r   ¦   r   zUnusedAnnotation.__init__Nr?   r   r   r   r   rF   Ÿ   rE   rF   c                   @   r=   )ÚUnusedIndirectAssignmentzEA `global` or `nonlocal` statement where the name is never reassignedz2`%s %s` is unused: name is never assigned in scopec                 C   s&   t  | ||¡ t|ƒj ¡ |f| _d S r   )r   r   Útyper   Úlowerr   r   r   r   r   r   ¯   s   z!UnusedIndirectAssignment.__init__Nr?   r   r   r   r   rG   «   rA   rG   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   rK   ´   ó    rK   c                   @   rJ   )ÚYieldOutsideFunctionzQ
    Indicates a yield or yield from statement outside of a function/method.
    z'yield' outside functionNrL   r   r   r   r   rN   »   rM   rN   c                   @   rJ   )ÚContinueOutsideLoopzH
    Indicates a continue statement outside of a while or for loop.
    z'continue' not properly in loopNrL   r   r   r   r   rO   Ä   rM   rO   c                   @   rJ   )ÚBreakOutsideLoopzE
    Indicates a break statement outside of a while or for loop.
    z'break' outside loopNrL   r   r   r   r   rP   Ë   rM   rP   c                   @   rJ   )ÚDefaultExceptNotLastzG
    Indicates an except: block as not the last exception handler.
    zdefault 'except:' must be lastNrL   r   r   r   r   rQ   Ò   rM   rQ   c                   @   rJ   )ÚTwoStarredExpressionszK
    Two or more starred expressions in an assignment (a, *b, *c = d).
    z%two starred expressions in assignmentNrL   r   r   r   r   rR   Ù   rM   rR   c                   @   rJ   )Ú%TooManyExpressionsInStarredAssignmentzC
    Too many expressions in an assignment with star-unpacking
    z1too many expressions in star-unpacking assignmentNrL   r   r   r   r   rS   à   rM   rS   c                   @   rJ   )ÚIfTuplezO
    Conditional test is a non-empty tuple literal, which are always True.
    zC'if tuple literal' is always true, perhaps remove accidental comma?NrL   r   r   r   r   rT   ç   rM   rT   c                   @   rJ   )ÚAssertTuplezM
    Assertion test is a non-empty tuple literal, which are always True.
    z5assertion is always true, perhaps remove parentheses?NrL   r   r   r   r   rU   î   rM   rU   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   rV   õ   r   rV   c                   @   r9   )ÚRaiseNotImplementedz<'raise NotImplemented' should be 'raise NotImplementedError'Nr;   r   r   r   r   rX   ý   r<   rX   c                   @   r9   )ÚInvalidPrintSyntaxz(use of >> is invalid with print functionNr;   r   r   r   r   rY     r<   rY   c                   @   r9   )Ú	IsLiteralzFuse ==/!= to compare constant literals (str, bytes, int, float, tuple)Nr;   r   r   r   r   rZ     r<   rZ   c                   @   r9   )ÚFStringMissingPlaceholdersz f-string is missing placeholdersNr;   r   r   r   r   r[   	  r<   r[   c                   @   r9   )ÚTStringMissingPlaceholdersz t-string is missing placeholdersNr;   r   r   r   r   r\     r<   r\   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   r]     r   r]   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   r_     r   r_   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   rb   !  r   rb   c                   @   r9   )ÚStringDotFormatMixingAutomaticz6'...'.format(...) mixes automatic and manual numberingNr;   r   r   r   r   re   )  r<   re   c                   @   r   )ÚStringDotFormatInvalidFormatz/'...'.format(...) has invalid format string: %sc                 C   r   r   r   ©r	   r   r
   Úerrorr   r   r   r   0  r   z%StringDotFormatInvalidFormat.__init__Nr   r   r   r   r   rf   -  r   rf   c                   @   r   )ÚPercentFormatInvalidFormatz*'...' %% ... has invalid format string: %sc                 C   r   r   r   rg   r   r   r   r   8  r   z#PercentFormatInvalidFormat.__init__Nr   r   r   r   r   ri   5  r   ri   c                   @   r9   )Ú$PercentFormatMixedPositionalAndNamedz8'...' %% ... has mixed positional and named placeholdersNr;   r   r   r   r   rj   =  r<   rj   c                   @   r   )Ú'PercentFormatUnsupportedFormatCharacterz0'...' %% ... has unsupported format character %rc                 C   r   r   r   )r	   r   r
   Úcr   r   r   r   D  r   z0PercentFormatUnsupportedFormatCharacter.__init__Nr   r   r   r   r   rk   A  r   rk   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   L  r,   z-PercentFormatPositionalCountMismatch.__init__Nr   r   r   r   r   rm   I  r   rm   c                   @   r   )Ú PercentFormatExtraNamedArgumentsz-'...' %% ... has unused named argument(s): %sc                 C   r   r   r   r`   r   r   r   r   T  r   z)PercentFormatExtraNamedArguments.__init__Nr   r   r   r   r   rp   Q  r   rp   c                   @   r   )ÚPercentFormatMissingArgumentz:'...' %% ... is missing argument(s) for placeholder(s): %sc                 C   r   r   r   rc   r   r   r   r   \  r   z%PercentFormatMissingArgument.__init__Nr   r   r   r   r   rq   Y  r   rq   c                   @   r9   )ÚPercentFormatExpectedMappingz.'...' %% ... expected mapping but got sequenceNr;   r   r   r   r   rr   a  r<   rr   c                   @   r9   )ÚPercentFormatExpectedSequencez.'...' %% ... expected sequence but got mappingNr;   r   r   r   r   rs   e  r<   rs   c                   @   r9   )Ú!PercentFormatStarRequiresSequencez,'...' %% ... `*` specifier requires sequenceNr;   r   r   r   r   rt   i  r<   rt   N)1r@   r   r   r   r$   r%   r(   r)   r-   r.   r0   r1   r4   r5   r8   r:   r>   rB   rF   rG   rK   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rX   rY   rZ   r[   r\   r]   r_   rb   re   rf   ri   rj   rk   rm   rp   rq   rr   rs   rt   r   r   r   r   Ú<module>   sb    
			