diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-13 11:24:01 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-13 11:39:04 +0300 |
commit | 8ab4ecc8f6b38cb40a0538c26f53abd3343094f3 (patch) | |
tree | 130f3c2d74ced87dbae00dd8c59968dee2b206c9 /contrib/python/zope.interface/py3/zope/interface/common/collections.py | |
parent | b643b0cb5b1a28996ce6ff18a3689d7af03f2e58 (diff) | |
download | ydb-8ab4ecc8f6b38cb40a0538c26f53abd3343094f3.tar.gz |
Intermediate changes
commit_hash:733d9d1dc02b26eb79eefc2059e2b9e39f7e1289
Diffstat (limited to 'contrib/python/zope.interface/py3/zope/interface/common/collections.py')
-rw-r--r-- | contrib/python/zope.interface/py3/zope/interface/common/collections.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/collections.py b/contrib/python/zope.interface/py3/zope/interface/common/collections.py index 543266d9cf..defa8a15b9 100644 --- a/contrib/python/zope.interface/py3/zope/interface/common/collections.py +++ b/contrib/python/zope.interface/py3/zope/interface/common/collections.py @@ -38,6 +38,7 @@ from collections import UserList from collections import UserString from collections import abc +from zope.interface._compat import PY313_OR_OLDER from zope.interface.common import ABCInterface from zope.interface.common import optional @@ -190,13 +191,14 @@ class IMutableSequence(ISequence): extra_classes = (UserList,) -class IByteString(ISequence): - """ - This unifies `bytes` and `bytearray`. - """ - abc = _new_in_ver( - 'ByteString', True, (ISequence.getABC(),), (bytes, bytearray), - ) +if PY313_OR_OLDER: + class IByteString(ISequence): + """ + This unifies `bytes` and `bytearray`. + """ + abc = _new_in_ver( + 'ByteString', True, (ISequence.getABC(),), (bytes, bytearray), + ) class ISet(ICollection): |