Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/extensions/__pycache__/bad_builtin.cpython-39.pyc
Ðазад
a n�h� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z erPddlmZ dd gZ d Zeed�ZG dd � d e�Zddd�dd�ZdS )z Checker for deprecated builtins.� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�only_required_for_messages)�PyLinter�map�filterz*Using a list comprehension can be clearer.)r r c @ sD e Zd ZdZddiZdedddd�ffZed �d dd�d d��ZdS )�BadBuiltinCheckerZdeprecated_builtinsZW0141)zUsed builtin function %s�bad-builtinz�Used when a disallowed builtin function is used (see the bad-function option). Usual disallowed functions are the ones like map, or filter , where Python offers now some cleaner alternative like list comprehension.z bad-functions�csvz<builtin function names>zMList of builtins function names that should not be used, separated by a comma)�default�type�metavar�helpr z nodes.Call�None)�node�returnc C st t |jtj�rp|jj}||�� v sp||�� v sp|| jjj v rpt �|�}|rX|�d|� �nt|�}| j d||d� d S )Nz. r )r �args)� isinstance�funcr �Name�name�frame�root�linter�configZ bad_functions� BUILTIN_HINTS�get�reprZadd_message)�selfr r �hintr � r"