관리-도구
편집 파일: async.cpython-311.pyc
� �܋fS � � � d Z ddlmZ ddlZddlmZ ddlZddlmZmZ ddl m Z ddlmZ ddlmZ erdd lmZ G d � de j � � Zdd�ZdS )z=Checker for anything related to the async protocol (PEP 492).� )�annotationsN)� TYPE_CHECKING)�nodes�util)�checkers)�utils)�decorated_with)�PyLinterc � � e Zd ZdZdddddifddd ddifd �Zdd �Z ej d� � dd�� � Z ej d� � dd�� � Z dS )�AsyncChecker�asynczYield inside async function�yield-inside-async-functionzQUsed when an `yield` or `yield from` statement is found inside an async function.� minversion�� � zFAsync context manager '%s' doesn't implement __aenter__ and __aexit__.�not-async-context-managerzxUsed when an async context manager is used with an object that does not implement the async context management protocol.)�E1700�E1701�return�Nonec �B � | j j j | _ dg| _ d S )Nzcontextlib.asynccontextmanager)�linter�config�mixin_class_rgx�_mixin_class_rgx�_async_generators)�selfs �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/checkers/async.py�openzAsyncChecker.open* s# � � $�� 2� B���"B�!C����� �node�nodes.AsyncFunctionDefc � � |� t j � � D ]a}|� � � |u rIt j d d� dk st |t j � � r| � d|�� � �bd S )N� r r )r"