File: //usr/local/lib/python3.10/dist-packages/sqlalchemy/event/__pycache__/legacy.cpython-310.pyc
o
���g# � @ s d Z ddlmZ ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lm Z d
dl
mZ d
dl
mZ d
dl
mZ d
dlmZ ejrWd
dlmZ d
dlmZ eeee eedef f Z d5d6dd�Zd7d#d$�Zd8d'd(�Zd9d+d,�Zd:d-d.�Zd;d1d2�Zd<d3d4�ZdS )=zhRoutines 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.�since�str�argnames� List[str]� converter�Optional[Callable[..., Any]]�return�2Callable[[Callable[..., Any]], Callable[..., Any]]c s d� ��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.
�fn�Callable[..., Any]r c s&