
    yIf'                        d Z  G d d          Z G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d d e          Z G d! d"e          Z G d# d$e          Z G d% d&e          Z G d' d(e          Z G d) d*e          Z G d+ d,e          Z G d- d.e          Z G d/ d0e          Z G d1 d2e          Z G d3 d4e          Z G d5 d6e          Z G d7 d8e          Z G d9 d:e          Z G d; d<e          Z G d= d>e          Z G d? d@e          Z  G dA dBe          Z! G dC dDe          Z" G dE dFe          Z# G dG dHe          Z$ G dI dJe          Z% G dK dLe          Z& G dM dNe          Z' G dO dPe          Z( G dQ dRe          Z) G dS dTe          Z* G dU dVe          Z+ G dW dXe          Z, G dY dZe          Z- G d[ d\e          Z.d]S )^z/
Provide the class Message and its subclasses.
c                   "    e Zd ZdZdZd Zd ZdS )Message  c                 D    || _         |j        | _        |j        | _        d S N)filenamelineno
col_offsetcol)selfr   locs      E/var/www/piapp/venv/lib/python3.11/site-packages/pyflakes/messages.py__init__zMessage.__init__
   s     j>    c                 p    d                     | j        | j        | j        dz   | j        | j        z            S )Nz{}:{}:{}: {}   )formatr   r	   r   messagemessage_args)r   s    r   __str__zMessage.__str__   s:    $$T]DK!%)\D4E%EG G 	Gr   N)__name__
__module____qualname__r   r   r   r   r   r   r   r   r      sA        GL" " "
G G G G Gr   r   c                       e Zd ZdZd ZdS )UnusedImportz%r imported but unusedc                 N    t                               | ||           |f| _        d S r   r   r   r   r   r   r   names       r   r   zUnusedImport.__init__   *    x---!Gr   Nr   r   r   r   r   r   r   r   r   r      s(        &G$ $ $ $ $r   r   c                       e Zd ZdZd ZdS )RedefinedWhileUnusedz&redefinition of unused %r from line %rc                 Z    t                               | ||           ||j        f| _        d S r   r   r   r	   r   r   r   r   r   orig_locs        r   r   zRedefinedWhileUnused.__init__   /    x---!8?3r   Nr!   r   r   r   r#   r#      s(        6G4 4 4 4 4r   r#   c                       e Zd ZdZd ZdS )ImportShadowedByLoopVarz0import %r from line %r shadowed by loop variablec                 Z    t                               | ||           ||j        f| _        d S r   r%   r&   s        r   r   z ImportShadowedByLoopVar.__init__'   r(   r   Nr!   r   r   r   r*   r*   $   s(        @G4 4 4 4 4r   r*   c                       e Zd ZdZd ZdS )ImportStarNotPermittedz/'from %s import *' only allowed at module levelc                 N    t                               | ||           |f| _        d S r   r   r   r   r   modnames       r   r   zImportStarNotPermitted.__init__/   *    x---$Jr   Nr!   r   r   r   r-   r-   ,   s(        ?G' ' ' ' 'r   r-   c                       e Zd ZdZd ZdS )ImportStarUsedz9'from %s import *' used; unable to detect undefined namesc                 N    t                               | ||           |f| _        d S r   r   r/   s       r   r   zImportStarUsed.__init__7   r1   r   Nr!   r   r   r   r3   r3   4   s(        IG' ' ' ' 'r   r3   c                       e Zd ZdZd ZdS )ImportStarUsagez5%r may be undefined, or defined from star imports: %sc                 P    t                               | ||           ||f| _        d S r   r   )r   r   r   r   	from_lists        r   r   zImportStarUsage.__init__?   s-    x---!9-r   Nr!   r   r   r   r6   r6   <   s(        EG. . . . .r   r6   c                       e Zd ZdZd ZdS )UndefinedNamezundefined name %rc                 N    t                               | ||           |f| _        d S r   r   r   s       r   r   zUndefinedName.__init__G   r    r   Nr!   r   r   r   r:   r:   D   s(        !G$ $ $ $ $r   r:   c                       e Zd ZdZddZdS )DoctestSyntaxErrorzsyntax error in doctestNc                 n    t                               | ||           |r|\  | _        | _        d| _        d S )Nr   )r   r   r	   r   r   )r   r   r   positions       r   r   zDoctestSyntaxError.__init__O   s>    x--- 	/&.#T[$(r   r   r!   r   r   r   r=   r=   L   s-        'G     r   r=   c                       e Zd ZdZd ZdS )UndefinedExportzundefined name %r in __all__c                 N    t                               | ||           |f| _        d S r   r   r   s       r   r   zUndefinedExport.__init__Y   r    r   Nr!   r   r   r   rA   rA   V   s(        ,G$ $ $ $ $r   rA   c                        e Zd ZdZdZdZd ZdS )UndefinedLocalz2local variable %r {0} referenced before assignmentz%defined in enclosing scope on line %rzdefined as a builtinc                     t                               | ||           |-| j                            | j                  | _        || _        d S | j                            | j                  | _        ||j        f| _        d S r   )r   r   r   r   builtinr   defaultr	   r&   s        r   r   zUndefinedLocal.__init__d   su    x---<..t|<<DL $D<..t|<<DL!%x 7Dr   N)r   r   r   r   rG   rF   r   r   r   r   rD   rD   ^   s2        BG5G$G8 8 8 8 8r   rD   c                       e Zd ZdZd ZdS )DuplicateArgumentz,duplicate argument %r in function definitionc                 N    t                               | ||           |f| _        d S r   r   r   s       r   r   zDuplicateArgument.__init__q   r    r   Nr!   r   r   r   rI   rI   n   s(        <G$ $ $ $ $r   rI   c                       e Zd ZdZd ZdS )MultiValueRepeatedKeyLiteralz0dictionary key %r repeated with different valuesc                 N    t                               | ||           |f| _        d S r   r   r   r   r   keys       r   r   z%MultiValueRepeatedKeyLiteral.__init__y   *    x--- Fr   Nr!   r   r   r   rL   rL   v   s(        @G# # # # #r   rL   c                       e Zd ZdZd ZdS )MultiValueRepeatedKeyVariablez9dictionary key variable %s repeated with different valuesc                 N    t                               | ||           |f| _        d S r   r   rN   s       r   r   z&MultiValueRepeatedKeyVariable.__init__   rP   r   Nr!   r   r   r   rR   rR   ~   s(        IG# # # # #r   rR   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   rU   rU      s        OGGGr   rU   c                       e Zd ZdZdZd ZdS )FutureFeatureNotDefinedz2An undefined __future__ feature name was imported.z future feature %s is not definedc                 N    t                               | ||           |f| _        d S r   r   r   s       r   r   z FutureFeatureNotDefined.__init__   r    r   Nr   r   r   __doc__r   r   r   r   r   rX   rX      s.        <<0G$ $ $ $ $r   rX   c                       e Zd ZdZdZd ZdS )UnusedVariablez^
    Indicates that a variable has been explicitly assigned to but not actually
    used.
    z/local variable %r is assigned to but never usedc                 N    t                               | ||           |f| _        d S r   r   r   r   r   namess       r   r   zUnusedVariable.__init__   *    x---"Hr   NrZ   r   r   r   r]   r]      s5          @G% % % % %r   r]   c                       e Zd ZdZdZd ZdS )UnusedAnnotationz_
    Indicates that a variable has been explicitly annotated to but not actually
    used.
    z-local variable %r is annotated but never usedc                 N    t                               | ||           |f| _        d S r   r   r_   s       r   r   zUnusedAnnotation.__init__   ra   r   NrZ   r   r   r   rc   rc      s4          >G% % % % %r   rc   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   rf   rf      s          ,GGGr   rf   c                       e Zd ZdZdZdS )YieldOutsideFunctionzQ
    Indicates a yield or yield from statement outside of a function/method.
    z'yield' outside functionNrg   r   r   r   ri   ri      s          +GGGr   ri   c                       e Zd ZdZdZdS )ContinueOutsideLoopzH
    Indicates a continue statement outside of a while or for loop.
    z'continue' not properly in loopNrg   r   r   r   rk   rk      s          2GGGr   rk   c                       e Zd ZdZdZdS )BreakOutsideLoopzE
    Indicates a break statement outside of a while or for loop.
    z'break' outside loopNrg   r   r   r   rm   rm      s          'GGGr   rm   c                       e Zd ZdZdZdS )DefaultExceptNotLastzG
    Indicates an except: block as not the last exception handler.
    zdefault 'except:' must be lastNrg   r   r   r   ro   ro      s          1GGGr   ro   c                       e Zd ZdZdZdS )TwoStarredExpressionszK
    Two or more starred expressions in an assignment (a, *b, *c = d).
    z%two starred expressions in assignmentNrg   r   r   r   rq   rq      s          6GGGr   rq   c                       e Zd ZdZdZdS )%TooManyExpressionsInStarredAssignmentzC
    Too many expressions in an assignment with star-unpacking
    z1too many expressions in star-unpacking assignmentNrg   r   r   r   rs   rs      s           BGGGr   rs   c                       e Zd ZdZdZdS )IfTuplezO
    Conditional test is a non-empty tuple literal, which are always True.
    zC'if tuple literal' is always true, perhaps remove accidental comma?Nrg   r   r   r   ru   ru      s           VGGGr   ru   c                       e Zd ZdZdZdS )AssertTuplezM
    Assertion test is a non-empty tuple literal, which are always True.
    z5assertion is always true, perhaps remove parentheses?Nrg   r   r   r   rw   rw      s           FGGGr   rw   c                       e Zd ZdZd ZdS )ForwardAnnotationSyntaxErrorz%syntax error in forward annotation %rc                 N    t                               | ||           |f| _        d S r   r   )r   r   r   
annotations       r   r   z%ForwardAnnotationSyntaxError.__init__   s*    x---'Mr   Nr!   r   r   r   ry   ry      s(        5G* * * * *r   ry   c                       e Zd ZdZdS )RaiseNotImplementedz<'raise NotImplemented' should be 'raise NotImplementedError'NrV   r   r   r   r}   r}      s        LGGGr   r}   c                       e Zd ZdZdS )InvalidPrintSyntaxz(use of >> is invalid with print functionNrV   r   r   r   r   r      s        8GGGr   r   c                       e Zd ZdZdS )	IsLiteralzFuse ==/!= to compare constant literals (str, bytes, int, float, tuple)NrV   r   r   r   r   r      s        VGGGr   r   c                       e Zd ZdZdS )FStringMissingPlaceholdersz f-string is missing placeholdersNrV   r   r   r   r   r      s        0GGGr   r   c                       e Zd ZdZd ZdS )'StringDotFormatExtraPositionalArgumentsz9'...'.format(...) has unused arguments at position(s): %sc                 N    t                               | ||           |f| _        d S r   r   )r   r   r   extra_positionss       r   r   z0StringDotFormatExtraPositionalArguments.__init__  s+    x---,.r   Nr!   r   r   r   r   r     s(        IG/ / / / /r   r   c                       e Zd ZdZd ZdS )"StringDotFormatExtraNamedArgumentsz2'...'.format(...) has unused named argument(s): %sc                 N    t                               | ||           |f| _        d S r   r   r   r   r   extra_keywordss       r   r   z+StringDotFormatExtraNamedArguments.__init__  +    x---+-r   Nr!   r   r   r   r   r     s(        BG. . . . .r   r   c                       e Zd ZdZd ZdS )StringDotFormatMissingArgumentz?'...'.format(...) is missing argument(s) for placeholder(s): %sc                 N    t                               | ||           |f| _        d S r   r   r   r   r   missing_argumentss       r   r   z'StringDotFormatMissingArgument.__init__  +    x---.0r   Nr!   r   r   r   r   r     s(        OG1 1 1 1 1r   r   c                       e Zd ZdZdS )StringDotFormatMixingAutomaticz6'...'.format(...) mixes automatic and manual numberingNrV   r   r   r   r   r     s        FGGGr   r   c                       e Zd ZdZd ZdS )StringDotFormatInvalidFormatz/'...'.format(...) has invalid format string: %sc                 N    t                               | ||           |f| _        d S r   r   r   r   r   errors       r   r   z%StringDotFormatInvalidFormat.__init__#  ra   r   Nr!   r   r   r   r   r      s(        ?G% % % % %r   r   c                       e Zd ZdZd ZdS )PercentFormatInvalidFormatz*'...' %% ... has invalid format string: %sc                 N    t                               | ||           |f| _        d S r   r   r   s       r   r   z#PercentFormatInvalidFormat.__init__+  ra   r   Nr!   r   r   r   r   r   (  s(        :G% % % % %r   r   c                       e Zd ZdZdS )$PercentFormatMixedPositionalAndNamedz8'...' %% ... has mixed positional and named placeholdersNrV   r   r   r   r   r   0  s        HGGGr   r   c                       e Zd ZdZd ZdS )'PercentFormatUnsupportedFormatCharacterz0'...' %% ... has unsupported format character %rc                 N    t                               | ||           |f| _        d S r   r   )r   r   r   cs       r   r   z0PercentFormatUnsupportedFormatCharacter.__init__7  s*    x---Dr   Nr!   r   r   r   r   r   4  s(        @G! ! ! ! !r   r   c                       e Zd ZdZd ZdS )$PercentFormatPositionalCountMismatchz9'...' %% ... has %d placeholder(s) but %d substitution(s)c                 P    t                               | ||           ||f| _        d S r   r   )r   r   r   n_placeholdersn_substitutionss        r   r   z-PercentFormatPositionalCountMismatch.__init__?  s-    x---+_=r   Nr!   r   r   r   r   r   <  s(        IG> > > > >r   r   c                       e Zd ZdZd ZdS ) PercentFormatExtraNamedArgumentsz-'...' %% ... has unused named argument(s): %sc                 N    t                               | ||           |f| _        d S r   r   r   s       r   r   z)PercentFormatExtraNamedArguments.__init__G  r   r   Nr!   r   r   r   r   r   D  s(        =G. . . . .r   r   c                       e Zd ZdZd ZdS )PercentFormatMissingArgumentz:'...' %% ... is missing argument(s) for placeholder(s): %sc                 N    t                               | ||           |f| _        d S r   r   r   s       r   r   z%PercentFormatMissingArgument.__init__O  r   r   Nr!   r   r   r   r   r   L  s(        JG1 1 1 1 1r   r   c                       e Zd ZdZdS )PercentFormatExpectedMappingz.'...' %% ... expected mapping but got sequenceNrV   r   r   r   r   r   T          >GGGr   r   c                       e Zd ZdZdS )PercentFormatExpectedSequencez.'...' %% ... expected sequence but got mappingNrV   r   r   r   r   r   X  r   r   r   c                       e Zd ZdZdS )!PercentFormatStarRequiresSequencez,'...' %% ... `*` specifier requires sequenceNrV   r   r   r   r   r   \  s        <GGGr   r   N)/r[   r   r   r#   r*   r-   r3   r6   r:   r=   rA   rD   rI   rL   rR   rU   rX   r]   rc   rf   ri   rk   rm   ro   rq   rs   ru   rw   ry   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   <module>r      s   
G G G G G G G G$ $ $ $ $7 $ $ $4 4 4 4 47 4 4 44 4 4 4 4g 4 4 4' ' ' ' 'W ' ' '' ' ' ' 'W ' ' '. . . . .g . . .$ $ $ $ $G $ $ $       $ $ $ $ $g $ $ $8 8 8 8 8W 8 8 8 $ $ $ $ $ $ $ $# # # # #7 # # ## # # # #G # # #P P P P Pw P P P$ $ $ $ $g $ $ $	% 	% 	% 	% 	%W 	% 	% 	%	% 	% 	% 	% 	%w 	% 	% 	%, , , , ,G , , ,+ + + + +7 + + +2 2 2 2 2' 2 2 2' ' ' ' 'w ' ' '1 1 1 1 17 1 1 16 6 6 6 6G 6 6 6B B B B BG B B BV V V V Vg V V VF F F F F' F F F* * * * *7 * * *M M M M M' M M M9 9 9 9 9 9 9 9W W W W W W W W1 1 1 1 1 1 1 1/ / / / /g / / /. . . . . . . .1 1 1 1 1W 1 1 1G G G G GW G G G% % % % %7 % % %% % % % % % % %I I I I I7 I I I! ! ! ! !g ! ! !> > > > >7 > > >. . . . .w . . .1 1 1 1 17 1 1 1? ? ? ? ?7 ? ? ?? ? ? ? ?G ? ? ?= = = = = = = = = =r   