관리-도구
편집 파일: legacy.cpython-38.pyc
U -?�f# � @ sZ d Z ddlmZ ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lm Z d dl mZ d dl mZ d dl mZ d dlmZ ejr�d dlmZ d dlmZ eeee eedef f Zd0ddddd�dd�Zddddd�dd�Zdddd �d!d"�Zdd#ddd$�d%d&�Zddddd$�d'd(�Zd)ddd*�d+d,�Zdd)ddd-�d.d/�ZdS )1zhRoutines to handle adaption of legacy call signatures, generation of deprecation notes and docstrings. � )�annotationsN)�Any)�Callable)�List)�Optional)�Tuple)�Type� )�_ET)�_ListenerFnType� )�util)�FullArgSpec)�_ClsLevelDispatch)�_HasEventsDispatch.�strz List[str]zOptional[Callable[..., Any]]z2Callable[[Callable[..., Any]], Callable[..., Any]])�since�argnames� converter�returnc s ddd�� ��fdd�}|S )a_ legacy sig decorator :param since: string version for deprecation warning :param argnames: list of strings, which is *all* arguments that the legacy version accepted, including arguments that are still there :param converter: lambda that will accept tuple of this full arg signature and return tuple of new arg signature. zCallable[..., Any])�fnr c s&