관리-도구
편집 파일: legacy.cpython-311.pyc
� �܋f � �B � d Z ddlmZ dd�Zd� Zd� Zd� Zd� Zd � Zd � Z dS )zhRoutines to handle adaption of legacy call signatures, generation of deprecation notes and docstrings. � )�utilNc � � ��� ��� fd�}|S )Nc �p �� t | d� � sg | _ | j � ���f� � | S )N�_legacy_signatures)�hasattrr �append)�fn�argnames� converter�sinces ����N/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/event/legacy.py�legz_legacy_signature.<locals>.leg sA �� ��r�/�0�0� '�$&�B�!� ��$�$�e�X�y�%A�B�B�B�� � � )r r r r s ``` r �_legacy_signaturer s/ ���� �� � � � � � � �Jr c � � ����� � j D ]u\ }���d dk r d��dd� �nd�t �� � t |j � � k r/�t |j � � u r�r�rJ ���fd�}n�� ��fd�}|c S �v�S )N���z**kwT� Fc � �� � �| � � S �Nr )�args�convr s ��r �wrap_legz%_wrap_fn_for_legacy.<locals>.wrap_leg) s �� ��2�t�t�T�{�+�+r c � ��� t t �j | � � � � ��fd��D � � } �r �| i |��S �| � S )Nc � �� g | ] }�| ��S r r )�.0�name�argdicts �r � <listcomp>z9_wrap_fn_for_legacy.<locals>.wrap_leg.<locals>.<listcomp>0 s �� �?�?�?�d�G�D�M�?�?�?r )�dict�zip� arg_names)r �kwr r �dispatch_collectionr �has_kws @����r r z%_wrap_fn_for_legacy.<locals>.wrap_leg. s^ ��� �"�3�':�'D�d�#K�#K�L�L�G�?�?�?�?�h�?�?�?�D�� )�!�r�4��2���.�!�r�4�y�(r )�legacy_signatures�lenr �bool�varkw)r$ r �argspecr r r r r% s `` @@@r �_wrap_fn_for_legacyr+ s� ������ �!4�!F� � ���x���B�<�6�!�!��F���"��~�H�H��F��x�=�=�C���-�-�-�-�&�D��M�= � = � 3 � 3 � � )�!�!�!�z�,� ,� ,� ,� ,� ,� ,� )� )� )� )� )� )� )� )� �O�O�O��� r c �l �� d� �fd�| � d� � D � � � � S )N� c 3 �"