
    yIf                       d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddl	Z
ddlmZ  ej        e          Zi ddd	d
dddddddddddddddddddddd d!d"d#d$d%d&d'd(i d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVZ G dW dXe
j        j                  ZdS )Yz8Plugin built-in to Flake8 to treat pyflakes as a plugin.    )annotationsN)Any)	Generator)OptionManagerUnusedImportF401ImportShadowedByLoopVarF402ImportStarUsedF403LateFutureImportF404ImportStarUsageF405ImportStarNotPermittedF406FutureFeatureNotDefinedF407PercentFormatInvalidFormatF501PercentFormatExpectedMappingF502PercentFormatExpectedSequenceF503 PercentFormatExtraNamedArgumentsF504PercentFormatMissingArgumentF505$PercentFormatMixedPositionalAndNamedF506$PercentFormatPositionalCountMismatchF507!PercentFormatStarRequiresSequenceF508'PercentFormatUnsupportedFormatCharacterF509StringDotFormatInvalidFormatF521"StringDotFormatExtraNamedArgumentsF522'StringDotFormatExtraPositionalArgumentsF523StringDotFormatMissingArgumentF524StringDotFormatMixingAutomaticF525FStringMissingPlaceholdersF541MultiValueRepeatedKeyLiteralF601MultiValueRepeatedKeyVariableF602%TooManyExpressionsInStarredAssignmentF621TwoStarredExpressionsF622AssertTupleF631	IsLiteralF632InvalidPrintSyntaxF633IfTupleF634BreakOutsideLoopF701ContinueOutsideLoopF702YieldOutsideFunctionF704ReturnOutsideFunctionF706F707F721F722F811F821F822F823F831F841F842F901)DefaultExceptNotLastDoctestSyntaxErrorForwardAnnotationSyntaxErrorRedefinedWhileUnusedUndefinedNameUndefinedExportUndefinedLocalDuplicateArgumentUnusedVariableUnusedAnnotationRaiseNotImplementedc                  `     e Zd ZdZdZd fd	Zedd            Zedd            ZddZ	 xZ
S )FlakesCheckerz=Subclass the Pyflakes checker to conform with the flake8 API.Ftreeast.ASTfilenamestrreturnNonec                Z    t                                          ||| j                   dS )z=Initialize the PyFlakes plugin with an AST tree and filename.)re   withDoctestN)super__init__with_doctest)selfrc   re   	__class__s      K/var/www/piapp/venv/lib/python3.11/site-packages/flake8/plugins/pyflakes.pyrl   zFlakesChecker.__init__F   s8    81B 	 	
 	
 	
 	
 	
    parserr   c                l    |                     dddd           |                     ddddd	           d
S )z:Register options for PyFlakes on the Flake8 OptionManager.z
--builtinsTz&define more built-ins, comma separated)parse_from_configcomma_separated_listhelpz
--doctestsF
store_truez!also check syntax of the doctests)defaultactionrt   rv   N)
add_option)clsrr   s     rp   add_optionszFlakesChecker.add_optionsL   se     	"!%9	 	 	
 	
 	
 	"4 	 	
 	
 	
 	
 	
rq   optionsargparse.Namespacec                t    |j         r$| j                            |j                   | _        |j        | _        dS )z0Parse option values from Flake8's OptionManager.N)builtinsbuiltInsuniondoctestsrm   )r{   r}   s     rp   parse_optionszFlakesChecker.parse_options]   s;      	@<--g.>??CL"+rq   6Generator[tuple[int, int, str, type[Any]], None, None]c           
   #     K   | j         D ]q}t          |dd          }|j        |d                    t                              t          |          j        d          |j        |j	        z            |j
        fV  rdS )zRun the plugin.colr   z{} {}F999N)messagesgetattrlinenoformatFLAKE8_PYFLAKES_CODESgettype__name__messagemessage_argsro   )rn   r   r   s      rp   runzFlakesChecker.rund   s      } 
	 
	G'5!,,C)--d7mm.DfMMOg&::  !    
	 
	rq   )rc   rd   re   rf   rg   rh   )rr   r   rg   rh   )r}   r~   rg   rh   )rg   r   )r   
__module____qualname____doc__rm   rl   classmethodr|   r   r   __classcell__)ro   s   @rp   rb   rb   A   s        GGL
 
 
 
 
 
 
 
 
 [
  , , , [,       rq   rb   )r   
__future__r   argparseastloggingtypingr   r   pyflakes.checkerpyflakesflake8.options.managerr   	getLoggerr   LOGr   checkerCheckerrb    rq   rp   <module>r      s   > > " " " " " "  



                  0 0 0 0 0 0g!!.F.v. f. 	.
 v. f. v. !&. #F. $V. '. #F. +F. +F. (.  .v!." #F#. .$ )&%.& .v'.( %f).* %f+., !&-.. #F/.0 $V1.2 ,V3.4 V5.6 67.8 9.: &;.< v=.> ?.@ 6A.B FC.D VE. .F # $*"![. . . b/ / / / /H$, / / / / /rq   