Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zope/interface/common/__pycache__/collections.cpython-39.pyc
Ðазад
a i�h� � @ s& d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd l m Z dd lmZ ddlm Z efdfd d�Zg d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� deee�ZG d d!� d!ee�ZG d"d#� d#e�Ze �rLG d$d%� d%e�ZG d&d'� d'e�ZG d(d)� d)e�ZG d*d+� d+e�ZG d,d-� d-e�ZG d.d/� d/e�ZG d0d1� d1ee�Z G d2d3� d3ee�Z!G d4d5� d5ee�Z"G d6d7� d7e�Z#G d8d9� d9e#�Z$G d:d;� d;e�Z%G d<d=� d=e%�Z&G d>d?� d?e&�Z'dS )@a� Interface definitions paralleling the abstract base classes defined in :mod:`collections.abc`. After this module is imported, the standard library types will declare that they implement the appropriate interface. While most standard library types will properly implement that interface (that is, ``verifyObject(ISequence, list()))`` will pass, for example), a few might not: - `memoryview` doesn't feature all the defined methods of ``ISequence`` such as ``count``; it is still declared to provide ``ISequence`` though. - `collections.deque.pop` doesn't accept the ``index`` argument of `collections.abc.MutableSequence.pop` - `range.index` does not accept the ``start`` and ``stop`` arguments. .. versionadded:: 5.0.0 � N)�ABCMeta)�OrderedDict)�UserDict)�UserList)� UserString)�abc)�PY313_OR_OLDER)�ABCInterface)�optional� c C s: |rt t| �S t| |dd| i�}|D ]}|�|� q&|S )N�__doc__z4The ABC %s is not defined in this version of Python.)�getattrr r �register)�name�verZbases_if_missingZregister_if_missing�missing�cr r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zope/interface/common/collections.py�_new_in_ver4 s ��r )�IAsyncGenerator�IAsyncIterable�IAsyncIterator� IAwaitable�ICollection� IContainer� ICoroutine� IGenerator� IHashable� IItemsView� IIterable� IIterator� IKeysView�IMapping�IMappingView�IMutableMapping�IMutableSequence�IMutableSet�IReversible� ISequence�ISet�ISized�IValuesViewc @ s e Zd ZejZedd� �ZdS )r c C s dS )z� Optional method. If not provided, the interpreter will use ``__iter__`` or the old ``__getitem__`` protocol to implement ``in``. Nr ��otherr r r �__contains__f s zIContainer.__contains__N)�__name__� __module__�__qualname__r � Containerr r. r r r r r c s r c @ s e Zd ZejZdS )r N)r/ r0 r1 r �Hashabler r r r r o s r c @ s e Zd ZejZedd� �ZdS )r c C s dS �z� Optional method. If not provided, the interpreter will implement `iter` using the old ``__getitem__`` protocol. Nr r r r r �__iter__v s zIIterable.__iter__N)r/ r0 r1 r �Iterabler r5 r r r r r s s r c @ s e Zd ZejZdS )r N)r/ r0 r1 r �Iteratorr r r r r ~ s r c @ s* e Zd Zedde�� f�Zedd� �ZdS )r'