aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/zope.interface/py3/zope/interface/common/builtins.py
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-12-13 11:24:01 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-12-13 11:39:04 +0300
commit8ab4ecc8f6b38cb40a0538c26f53abd3343094f3 (patch)
tree130f3c2d74ced87dbae00dd8c59968dee2b206c9 /contrib/python/zope.interface/py3/zope/interface/common/builtins.py
parentb643b0cb5b1a28996ce6ff18a3689d7af03f2e58 (diff)
downloadydb-8ab4ecc8f6b38cb40a0538c26f53abd3343094f3.tar.gz
Intermediate changes
commit_hash:733d9d1dc02b26eb79eefc2059e2b9e39f7e1289
Diffstat (limited to 'contrib/python/zope.interface/py3/zope/interface/common/builtins.py')
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/builtins.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/builtins.py b/contrib/python/zope.interface/py3/zope/interface/common/builtins.py
index 09de5b3b2f..9e543c83f5 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/builtins.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/builtins.py
@@ -19,6 +19,7 @@ that they implement the appropriate interface.
"""
from zope.interface import classImplements
+from zope.interface._compat import PY313_OR_OLDER
from zope.interface.common import collections
from zope.interface.common import io
from zope.interface.common import numbers
@@ -67,17 +68,18 @@ class ITextString(collections.ISequence):
extra_classes = (str,)
-class IByteString(collections.IByteString):
- """
- Interface for immutable byte strings.
+if PY313_OR_OLDER:
+ class IByteString(collections.IByteString):
+ """
+ Interface for immutable byte strings.
- On all Python versions this is :class:`bytes`.
+ On all Python versions this is :class:`bytes`.
- Unlike :class:`zope.interface.common.collections.IByteString`
- (the parent of this interface) this does *not* include
- :class:`bytearray`.
- """
- extra_classes = (bytes,)
+ Unlike :class:`zope.interface.common.collections.IByteString`
+ (the parent of this interface) this does *not* include
+ :class:`bytearray`.
+ """
+ extra_classes = (bytes,)
class INativeString(ITextString):