
    yIf                    z    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
mZ  ej        e          ZddZdS )zAggregation function for CLI specified options and config file options.

This holds the logic that uses the collected and merged config files and
applies the user-specified command-line configuration on top of it.
    )annotationsN)Sequence)config)OptionManagermanagerr   cfgconfigparser.RawConfigParsercfg_dirstrargvSequence[str] | Nonereturnargparse.Namespacec           	        |                      g           }t          j        | ||          }| j        |_        | j        |_        |                                D ]\  }}|}t          ||          s+| j        |         j        }	t          |	t                    sJ |	}t                              dt          ||d          ||           t          |||           |                      ||          S )z0Aggregate and merge CLI and config file options.z3Overriding default value of (%s) for "%s" with (%s)N)
parse_argsr   parse_configextended_default_ignoreextended_default_selectitemshasattrconfig_options_dictdest
isinstancer   LOGdebuggetattrsetattr)
r   r   r
   r   default_valuesparsed_configconfig_namevalue	dest_namedest_vals
             M/var/www/piapp/venv/lib/python3.11/site-packages/flake8/options/aggregator.pyaggregate_optionsr%      s    ''++N 'g>>M .5-LN*-4-LN* ,1133 2 2U	 ~{33 	!2;?DHh,,,,, I		ANIt44		
 	
 	
 		51111 dN333    )
r   r   r   r	   r
   r   r   r   r   r   )__doc__
__future__r   argparseconfigparserloggingtypingr   flake8.optionsr   flake8.options.managerr   	getLogger__name__r   r%    r&   r$   <module>r2      s    
 # " " " " "             ! ! ! ! ! ! 0 0 0 0 0 0g!!%4 %4 %4 %4 %4 %4r&   