Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/__pycache__/utils.cpython-39.pyc
Ðазад
a d�h�! � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dlm Z m Z mZmZm Z mZmZ d dlmZ g d�Zdejv Zedd d �ZG dd� de e �ZG d d� de d �ZG dd� deeef �Ze� Zddd�dd�Zdd�dd�Zdd�dd�Zdd�dd�Zdd�dd�Zdd�d d!�Z dd�d"d#�Z!dd�d$d%�Z"ed&�Z#d'd(d)d*�d+d,�Z$d-dd.�d/d0�Z%d1dd.�d2d3�Z&ee g e'f e'f Z(d4d5d.�d6d7�Z)d<d8dd9�d:d;�Z*dS )=� )�annotationsN)�deque)�Callable�ContextManager�Dict� Generator�Generic�TypeVar�Union)�wcwidth)�Event�DummyContext� get_cwidth�suspend_to_background_supported�is_conemu_ansi� is_windows�in_main_thread�get_bell_environment_variable�get_term_environment_variable�take_using_weights�to_str�to_int�AnyFloat�to_float�is_dumb_terminalzsphinx.ext.autodoc�_SenderT)� covariantc @ s� e Zd ZdZddddd�dd�Zdd �d d�Zdd �dd �Zddd�dd�Zddd�dd�Zddd�dd�Z ddd�dd�Z dS )r a� Simple event to which event handlers can be attached. For instance:: class Cls: def __init__(self): # Define event. The first parameter is the sender. self.event = Event(self) obj = Cls() def handler(sender): pass # Add event handler by using the += operator. obj.event += handler # Fire event. obj.event() Nr z Callable[[_Sender], None] | None�None)�sender�handler�returnc C s || _ g | _|d ur| |7 } d S �N)r � _handlers)�selfr r � r$ ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/utils.py�__init__B s zEvent.__init__�r c C s | j D ]}|| j� qdS )zFire event.N)r"