
    g'                        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.y])^z/
Provide the class Message and its subclasses.
c                        e Zd ZdZdZd Zd Zy)Message  c                 V    || _         |j                  | _        |j                  | _        y N)filenamelineno
col_offsetcol)selfr   locs      T/var/www/html/brdwt/brdwt/brdwtenv/lib/python3.12/site-packages/pyflakes/messages.py__init__zMessage.__init__
   s     jj>>    c                     dj                  | 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]]DKK!%)\\D4E4E%EG 	Gr   N)__name__
__module____qualname__r   r   r   r   r   r   r   r   r      s    GL"
Gr   r   c                       e Zd ZdZd Zy)UnusedImportz%r imported but unusedc                 B    t         j                  | ||       |f| _        y 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y)RedefinedWhileUnusedz&redefinition of unused %r from line %rc                 X    t         j                  | ||       ||j                  f| _        y 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4r   r#   c                       e Zd ZdZd Zy)ImportShadowedByLoopVarz0import %r from line %r shadowed by loop variablec                 X    t         j                  | ||       ||j                  f| _        y r   r%   r&   s        r   r   z ImportShadowedByLoopVar.__init__'   r(   r   Nr!   r   r   r   r*   r*   $   s    @G4r   r*   c                       e Zd ZdZd Zy)ImportStarNotPermittedz/'from %s import *' only allowed at module levelc                 B    t         j                  | ||       |f| _        y 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y)ImportStarUsedz9'from %s import *' used; unable to detect undefined namesc                 B    t         j                  | ||       |f| _        y 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y)ImportStarUsagez5%r may be undefined, or defined from star imports: %sc                 D    t         j                  | ||       ||f| _        y 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y)UndefinedNamezundefined name %rc                 B    t         j                  | ||       |f| _        y 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y)DoctestSyntaxErrorzsyntax error in doctestNc                 b    t         j                  | ||       |r|\  | _        | _        d| _        y )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y)UndefinedExportzundefined name %r in __all__c                 B    t         j                  | ||       |f| _        y 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y)UndefinedLocalz2local variable %r {0} referenced before assignmentz%defined in enclosing scope on line %rzdefined as a builtinc                    t         j                  | ||       |2| j                  j                  | j                        | _        || _        y | j                  j                  | j                        | _        ||j                  f| _        y r   )r   r   r   r   builtinr   defaultr	   r&   s        r   r   zUndefinedLocal.__init__d   sg    x-<<..t||<DL $D<<..t||<DL!%x 7Dr   N)r   r   r   r   rG   rF   r   r   r   r   rD   rD   ^   s    BG5G$G8r   rD   c                       e Zd ZdZd Zy)DuplicateArgumentz,duplicate argument %r in function definitionc                 B    t         j                  | ||       |f| _        y 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y)MultiValueRepeatedKeyLiteralz0dictionary key %r repeated with different valuesc                 B    t         j                  | ||       |f| _        y 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y)MultiValueRepeatedKeyVariablez9dictionary key variable %s repeated with different valuesc                 B    t         j                  | ||       |f| _        y 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y)LateFutureImportz?from __future__ imports must occur at the beginning of the fileNr   r   r   r   r   r   r   rU   rU      s    OGr   rU   c                       e Zd ZdZdZd Zy)FutureFeatureNotDefinedz2An undefined __future__ feature name was imported.z future feature %s is not definedc                 B    t         j                  | ||       |f| _        y 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y)UnusedVariablez^
    Indicates that a variable has been explicitly assigned to but not actually
    used.
    z/local variable %r is assigned to but never usedc                 B    t         j                  | ||       |f| _        y r   r   r   r   r   namess       r   r   zUnusedVariable.__init__       x-"Hr   NrZ   r   r   r   r]   r]      s     @G%r   r]   c                       e Zd ZdZdZd Zy)UnusedAnnotationz_
    Indicates that a variable has been explicitly annotated to but not actually
    used.
    z-local variable %r is annotated but never usedc                 B    t         j                  | ||       |f| _        y r   r   r_   s       r   r   zUnusedAnnotation.__init__   ra   r   NrZ   r   r   r   rc   rc      s     >G%r   rc   c                       e Zd ZdZdZy)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     ,Gr   rf   c                       e Zd ZdZdZy)YieldOutsideFunctionzQ
    Indicates a yield or yield from statement outside of a function/method.
    z'yield' outside functionNrg   r   r   r   ri   ri      s     +Gr   ri   c                       e Zd ZdZdZy)ContinueOutsideLoopzH
    Indicates a continue statement outside of a while or for loop.
    z'continue' not properly in loopNrg   r   r   r   rk   rk      s     2Gr   rk   c                       e Zd ZdZdZy)BreakOutsideLoopzE
    Indicates a break statement outside of a while or for loop.
    z'break' outside loopNrg   r   r   r   rm   rm      s     'Gr   rm   c                       e Zd ZdZdZy)DefaultExceptNotLastzG
    Indicates an except: block as not the last exception handler.
    zdefault 'except:' must be lastNrg   r   r   r   ro   ro      s     1Gr   ro   c                       e Zd ZdZdZy)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     6Gr   rq   c                       e Zd ZdZdZy)%TooManyExpressionsInStarredAssignmentzC
    Too many expressions in an assignment with star-unpacking
    z1too many expressions in star-unpacking assignmentNrg   r   r   r   rs   rs      s     BGr   rs   c                       e Zd ZdZdZy)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Gr   ru   c                       e Zd ZdZdZy)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Gr   rw   c                       e Zd ZdZd Zy)ForwardAnnotationSyntaxErrorz%syntax error in forward annotation %rc                 B    t         j                  | ||       |f| _        y 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y)RaiseNotImplementedz<'raise NotImplemented' should be 'raise NotImplementedError'NrV   r   r   r   r}   r}      s    LGr   r}   c                       e Zd ZdZy)InvalidPrintSyntaxz(use of >> is invalid with print functionNrV   r   r   r   r   r      s    8Gr   r   c                       e Zd ZdZy)	IsLiteralzFuse ==/!= to compare constant literals (str, bytes, int, float, tuple)NrV   r   r   r   r   r      s    VGr   r   c                       e Zd ZdZy)FStringMissingPlaceholdersz f-string is missing placeholdersNrV   r   r   r   r   r      s    0Gr   r   c                       e Zd ZdZd Zy)'StringDotFormatExtraPositionalArgumentsz9'...'.format(...) has unused arguments at position(s): %sc                 B    t         j                  | ||       |f| _        y 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y)"StringDotFormatExtraNamedArgumentsz2'...'.format(...) has unused named argument(s): %sc                 B    t         j                  | ||       |f| _        y 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y)StringDotFormatMissingArgumentz?'...'.format(...) is missing argument(s) for placeholder(s): %sc                 B    t         j                  | ||       |f| _        y r   r   r   r   r   missing_argumentss       r   r   z'StringDotFormatMissingArgument.__init__      x-.0r   Nr!   r   r   r   r   r     s    OG1r   r   c                       e Zd ZdZy)StringDotFormatMixingAutomaticz6'...'.format(...) mixes automatic and manual numberingNrV   r   r   r   r   r     s    FGr   r   c                       e Zd ZdZd Zy)StringDotFormatInvalidFormatz/'...'.format(...) has invalid format string: %sc                 B    t         j                  | ||       |f| _        y 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y)PercentFormatInvalidFormatz*'...' %% ... has invalid format string: %sc                 B    t         j                  | ||       |f| _        y 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y)$PercentFormatMixedPositionalAndNamedz8'...' %% ... has mixed positional and named placeholdersNrV   r   r   r   r   r   0  s    HGr   r   c                       e Zd ZdZd Zy)'PercentFormatUnsupportedFormatCharacterz0'...' %% ... has unsupported format character %rc                 B    t         j                  | ||       |f| _        y 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y)$PercentFormatPositionalCountMismatchz9'...' %% ... has %d placeholder(s) but %d substitution(s)c                 D    t         j                  | ||       ||f| _        y 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y) PercentFormatExtraNamedArgumentsz-'...' %% ... has unused named argument(s): %sc                 B    t         j                  | ||       |f| _        y 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y)PercentFormatMissingArgumentz:'...' %% ... is missing argument(s) for placeholder(s): %sc                 B    t         j                  | ||       |f| _        y r   r   r   s       r   r   z%PercentFormatMissingArgument.__init__O  r   r   Nr!   r   r   r   r   r   L  s    JG1r   r   c                       e Zd ZdZy)PercentFormatExpectedMappingz.'...' %% ... expected mapping but got sequenceNrV   r   r   r   r   r   T      >Gr   r   c                       e Zd ZdZy)PercentFormatExpectedSequencez.'...' %% ... expected sequence but got mappingNrV   r   r   r   r   r   X  r   r   r   c                       e Zd ZdZy)!PercentFormatStarRequiresSequencez,'...' %% ... `*` specifier requires sequenceNrV   r   r   r   r   r   \  s    <Gr   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      sB  
G G$7 $47 44g 4'W ''W '.g .$G $ $g $8W 8 $ $#7 ##G #Pw P$g $	%W 	%	%w 	%,G ,+7 +2' 2'w '17 16G 6BG BVg VF' F*7 *M' M9 9W W1 1/g /. .1W 1GW G%7 %% %I7 I!g !>7 >.w .17 1?7 ??G ?= =r   