| Server IP : 146.190.157.162 / Your IP : 216.73.217.33 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/prompt_toolkit/__pycache__/ |
Upload File : |
�
���d�! � �� � d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dlm Z m
Z
mZmZm
Z
mZmZmZ d dlmZ g d�Zdej v Z edd �
� � Z G d� dee � � Z G d
� de
d � � Z G d� deeef � � Z e� � Zd0d�Zd1d�Zd1d�Zd1d�Zd1d�Z d1d�Z!d1d�Z"d2d�Z# ed� � Z$d3d$�Z%d4d'�Z&d5d)�Z'ee g e(f e(f Z)d6d,�Z*d7d8d/�Z+dS )9� )�annotationsN)�deque)�Callable�ContextManager�Deque�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 �N � e Zd ZdZ ddd �Zdd
�Zdd�Zdd
�Zdd�Zdd�Z 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()
N�senderr �handler� Callable[[_Sender], None] | None�return�Nonec �4 � || _ g | _ |�| |z
} d S d S �N)r � _handlers)�selfr r! s �6/usr/lib/python3/dist-packages/prompt_toolkit/utils.py�__init__zEvent.__init__C s- � � ���:<������G�O�D�D�D� �� c �: � | j D ]} || j � � �dS )zFire event.N)r'