OwlCyberSecurity - MANAGER
Edit File: fix_annotations.cpython-311.pyc
� ������h-�����������������������^�����d�Z�ddlmZ�ddlmZ�ddlmZ�dZd��Z�G�d��dej ��������������������Z d S�) z& Fixer to remove function annotations �����)� fixer_base)�token)�symsz)Removing function annotations completely.c�����������������������|�j���������d���������S�)Nr���)�children)�nodes��� �t/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/libpasteurize/fixes/fix_annotations.py�param_without_annotationsr ������s�������=��������c��������������������"�����e�Zd�ZdZd��ZdZd��ZdS�)�FixAnnotationsFc������������������T�����|�j���������s d|�_���������|����������������������||��������������d�S�d�S�)NT��reason)�warned�warning)�selfr���r���s��� r ���� warn_oncezFixAnnotations.warn_once���s9�������{�� .��D�K��L�L��f�L�-�-�-�-�-� .�� .r���zm funcdef< 'def' any parameters< '(' [params=any] ')' > ['->' ret=any] ':' any* > c�����������������������|����������������������d������������}|����������������������d������������}|�m|j��������j��������t����������j��������k����s J�d���������������|����������������������|t������������������������|j��������������������������������������������|������������������������������������|�dS�|j��������t����������j ��������k����r_|j ��������D�]U}|j��������t����������j��������k����r>|����������������������|t������������������������|���������������������t����������|��������������������������VdS�|j��������t����������j��������k����r@|����������������������|t������������������������|���������������������t����������|�������������������������dS�dS�)zK This just strips annotations from the funcdef completely. �params�retNzInvalid return annotationr���)�get�prev_sibling�typer����RARROWr����warning_text�remover���� typedargslistr����tname�replacer ���)r���r����resultsr���r����params��� r ���� transformzFixAnnotations.transform���sN���������Y�'�'���k�k�&�!�!���?��#�(�E�L�8�8�8�:V�8�8�8��N�N�4��N�5�5�5���#�#�%�%�%��J�J�L�L�L��>�6�6��;�$�,�,�,���� D�� D���:���+�+��N�N�4��N�=�=�=��M�M�";�E�"B�"B�C�C�C�� D�� D���[�D�J� &� &��N�N�4��N�5�5�5��N�N�4�V�<�<�=�=�=�=�=��'� &r���N)�__name__� __module__�__qualname__r���r����PATTERNr#�����r���r ���r ���r ������s>�������������� �F�.��.��.� �G�>��>��>��>��>r���r ���N)�__doc__�lib2to3r���� lib2to3.pgen2r����lib2to3.fixer_utilr���r���r ����BaseFixr ���r(���r���r ����<module>r.������s����������������������������������#��#��#��#��#��#�;�������">��">��">��">��">�Z�'��">��">��">��">��">r���