Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/traitlets/__pycache__/traitlets.cpython-39.pyc
Ðазад
a _�h)Q � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Zddlm Z ddlmZ ddlmZmZmZmZ ddlmZ dd lmZ dd lmZ ddlmZmZmZ ee e!e"fZ#e$fZ%ej&r�ddl'm(Z( nddl m(Z( g d �Z)eddd�Z*eddd�Z+e*Z,G dd� de-�Z.ddd�dd�Z/ddd�dd�Z0ddd�dd�Z1d d!d"�d#d$�Z2G d%d&� d&�Z3d�ddd'd(�d)d*�Z4dd+d,�d-d.�Z5G d/d0� d0�Z6G d1d2� d2�Z7e7Z8G d3d4� d4�Z9e(d5�Z:e(d6�Z;e(d7�Z<ej&�rdd8l'm=Z=m>Z> e(d9e?d:�Z@e(d;ejAd:�ZBG d<d=� d=e9ejCe:e;f �ZDG d>d?� d?�ZEdd?d@�dAdB�ZFG dCdD� dDe$�ZGG dEdF� dFeG�ZHdGdH�dIddJdK�dLdM�ZIdNdNdO�dPdQ�ZJdIdRd"�dSdT�ZKddUdV�dWdX�ZLej(dNejMdYejAf dZ�ZNG d[d\� d\e9�ZOG d]dJ� dJeO�ZPG d^dR� dReO�ZQG d_dU� dUeO�ZRG d`da� daeGdb�ZSG dcdd� ddeSeHdb�ZTG dedf� dfeDe:e;f �ZUG dgdh� dheUe:e;f �ZVG didj� djeUe<e<f �ZWG dkdl� dl�ZXG dmdn� dneXeVe:e;f �ZYG dodp� dpeXeWe< �ZZG dqdr� dreUej[e< ej[e< f �Z\G dsdt� dteDejAejAf �Z]G dudv� dveDej[ejA ej[ejA f �ZAdwddddx�dydz�Z^G d{d|� d|eDe:e;f �Z_G d}d~� d~e_e:e;f �Z`e_e` ZaZbe_ZcG dd�� d�eDe:e;f �ZdG d�d�� d�ede:e;f �ZeG d�d�� d�eDefej]efegehf f �ZiG d�d�� d�eieDefejAf �ZjG d�d�� d�eDekekf �ZlG d�d�� d�eleDekejAf �ZmG d�d�� d�eDe:e;f �ZnG d�d�� d�ene:e;f eDe?ejAf �ZoG d�d�� d�eDe?e?f �ZpG d�d�� d�ep�ZqG d�d�� d�eDe:e;f �ZrG d�d�� d�ere:e;f �ZsG d�d�� d�eDe:e:f �ZtG d�d�� d�ete: �ZuG d�d�� d�ete: �ZvG d�d�� d�eWe< �ZwG d�d�� d�ewejxe< �ZxG d�d�� d�ewejyejA �ZyG d�d�� d�ewejzejAdYf �ZzG d�d�� d�eWd� �Z{G d�d�� d�eDe:e;f �Z|G d�d�� d�eDd�ej]d�e?f f �Z}G d�d�� d�eDejAejAf �Z~G d�d�� d�eDejMdYejAf ejMdYejAf f �ZMdS )�a� A lightweight Traits like module. This is designed to provide a lightweight, simple, pure Python version of many of the capabilities of enthought.traits. This includes: * Validation * Type specification with defaults * Static and dynamic notification * Basic predefined types * An API that is similar to enthought.traits We don't support: * Delegation * Automatic GUI generation * A full set of trait types. Most importantly, we don't provide container traits (list, dict, tuple) that can trigger notifications if their contents change. * API compatibility with enthought.traits There are also some important difference in our design: * enthought.traits does not validate default values. We do. We choose to create this module because we need these capabilities, but we need them to be pure Python so they work in all Python implementations, including Jython and IronPython. Inheritance diagram: .. inheritance-diagram:: traitlets.traitlets :parts: 3 � )�annotationsN)�literal_eval� )�Bunch)�add_article�class_of�describe� repr_type)� getargspec��import_item)�Sentinel)�deprecated_method�should_warn�warn)�TypeVar);�All�Any�BaseDescriptor�Bool�Bytes�CBool�CBytes�CComplex�CFloat�CInt�CLong�CRegExp�CUnicode�Callable�CaselessStrEnum�ClassBasedTraitType�Complex� Container�DefaultHandler�Dict�DottedObjectName�Enum�EventHandler�Float�ForwardDeclaredInstance�ForwardDeclaredMixin�ForwardDeclaredType� FuzzyEnum�HasDescriptors� HasTraits�Instance�Int�Integer�List�Long�MetaHasDescriptors� MetaHasTraits� ObjectName�ObserveHandler�Set� TCPAddress�This� TraitError� TraitType�Tuple�Type�Unicode� Undefined�Union�UseEnum�ValidateHandler�default�directional_link�dlink�link�observe�observe_compat�parse_notifier_name�validaterA Z traitletszA Used in Traitlets to specify that no defaults are set in kwargs r zi Used in Traitlets to listen to all types of notification or to notifications from all trait attributes. c @ s e Zd ZdS )r<