관리-도구
편집 파일: option_manager_mixin.cpython-311.pyc
� �܋f�9 � �* � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl mZ d dlm Z d dlmZmZmZ d dlmZ d dlmZ d dlmZ d d lmZ erd d lmZ ej dk rd dlZnd dlZdd�Zej dd�� � Z! G d� d� � Z"dS )� )�annotationsN)�Iterator)�Path)� TYPE_CHECKING�Any�TextIO)�utils)�Option)�OptionParser)� OptionDict)�OptionsProviderMixin)� � �self�optparse.HelpFormatter�optionr �return�strc � � | j �| j st |j � � S |j d dd� } | j j j | }|� |� � }|� ||� � }t |j ||� � }t j ||� � }n# t $ r d}Y nw xY w|t j u s|s| j }|j � | j t |� � � � S )z�Patch OptionParser.expand_default with custom behaviour. This will handle defaults to avoid overriding values in the configuration file. Nr � )�parser�default_tagr �help� _long_opts�options_manager�_all_options�get_option_def�option_attrname�getattr�configr �_format_option_value�KeyError�optparse� NO_DEFAULT�NO_DEFAULT_VALUE�replace)r r �optname�provider�optdict�values �s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/config/option_manager_mixin.py�_expand_defaultr, &