diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-12-14 10:12:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-14 10:12:08 +0000 |
commit | 05790a616375bf3dd50f64989b40bc4833b9aa42 (patch) | |
tree | dd4033454262eaa0409f005737624df4398a19f2 /contrib/python/zope.interface/py3/zope/interface/common/builtins.py | |
parent | cd6e4b48262b4430d1e357aa384f65758cf66f57 (diff) | |
parent | 343a8a39750604e3ef349ae3f479dbbeb04a3c7d (diff) | |
download | ydb-05790a616375bf3dd50f64989b40bc4833b9aa42.tar.gz |
Merge pull request #12602 from ydb-platform/mergelibs-241213-1023
Library import 241213-1023
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.py | 20 |
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 09de5b3b2f8..9e543c83f5b 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): |