diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-28 17:49:28 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-28 17:58:46 +0300 |
commit | 05f1a7bca5400633bcb52b58affe23880df1fd0e (patch) | |
tree | 87744c3c5cb786fddbe15004779b941988a0b7d7 /contrib/python/zope.interface/py3/zope/interface/common/sequence.py | |
parent | dc1a94ab8d6985d2dcf888fa1881e7b80f7042b1 (diff) | |
download | ydb-05f1a7bca5400633bcb52b58affe23880df1fd0e.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/zope.interface/py3/zope/interface/common/sequence.py')
-rw-r--r-- | contrib/python/zope.interface/py3/zope/interface/common/sequence.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/sequence.py b/contrib/python/zope.interface/py3/zope/interface/common/sequence.py index 738f76d42a..c63f5a477a 100644 --- a/contrib/python/zope.interface/py3/zope/interface/common/sequence.py +++ b/contrib/python/zope.interface/py3/zope/interface/common/sequence.py @@ -55,6 +55,7 @@ class IMinimalSequence(collections.IIterable): Declaring this interface does not specify whether `__getitem__` supports slice objects.""" + class IFiniteSequence(collections.ISized, IMinimalSequence): """ A sequence of bound size. @@ -63,6 +64,7 @@ class IFiniteSequence(collections.ISized, IMinimalSequence): Extend ``ISized`` """ + class IReadSequence(collections.IContainer, IFiniteSequence): """ read interface shared by tuple and list @@ -120,6 +122,7 @@ class IExtendedReadSequence(IReadSequence): Return first index of *value* """ + class IUniqueMemberWriteSequence(Interface): """The write contract for a sequence that may enforce unique members""" @@ -161,12 +164,14 @@ class IUniqueMemberWriteSequence(Interface): def extend(iterable): """Extend list by appending elements from the iterable""" + class IWriteSequence(IUniqueMemberWriteSequence): """Full write contract for sequences""" def __imul__(n): """``x.__imul__(n) <==> x *= n``""" + class ISequence(IReadSequence, IWriteSequence): """ Full sequence contract. |