aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/zope.interface/py3/zope/interface/common
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-03-05 08:51:15 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-03-05 09:00:32 +0300
commit18c72bb588bd1bf332582b98058548f02e183e5d (patch)
tree21d752e5113b9d58276698044f3c53a6e3a636b5 /contrib/python/zope.interface/py3/zope/interface/common
parent74819c4157bd388a7d429c870ea4b343a282dafa (diff)
downloadydb-18c72bb588bd1bf332582b98058548f02e183e5d.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/zope.interface/py3/zope/interface/common')
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/__init__.py5
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/builtins.py4
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/collections.py6
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/idatetime.py11
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/interfaces.py1
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/io.py1
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/mapping.py1
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/common/sequence.py1
8 files changed, 20 insertions, 10 deletions
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/__init__.py b/contrib/python/zope.interface/py3/zope/interface/common/__init__.py
index 56f4566a24..f308f9edd6 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/__init__.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/__init__.py
@@ -13,11 +13,12 @@
import itertools
from types import FunctionType
-from zope.interface import classImplements
from zope.interface import Interface
-from zope.interface.interface import fromFunction
+from zope.interface import classImplements
from zope.interface.interface import InterfaceClass
from zope.interface.interface import _decorator_non_return
+from zope.interface.interface import fromFunction
+
__all__ = [
# Nothing public here.
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 17090e4a79..6e13e06482 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/builtins.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/builtins.py
@@ -19,10 +19,10 @@ that they implement the appropriate interface.
"""
from zope.interface import classImplements
-
from zope.interface.common import collections
-from zope.interface.common import numbers
from zope.interface.common import io
+from zope.interface.common import numbers
+
__all__ = [
'IList',
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 c549028268..3c751c05c8 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/collections.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/collections.py
@@ -31,17 +31,17 @@ is, ``verifyObject(ISequence, list()))`` will pass, for example), a few might no
"""
import sys
-
from abc import ABCMeta
-from collections import abc
from collections import OrderedDict
-from collections import UserList
from collections import UserDict
+from collections import UserList
from collections import UserString
+from collections import abc
from zope.interface.common import ABCInterface
from zope.interface.common import optional
+
# pylint:disable=inherit-non-class,
# pylint:disable=no-self-argument,no-method-argument
# pylint:disable=unexpected-special-method-signature
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/idatetime.py b/contrib/python/zope.interface/py3/zope/interface/common/idatetime.py
index 82f0059c85..aeda07aa0e 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/idatetime.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/idatetime.py
@@ -14,9 +14,14 @@
This module is called idatetime because if it were called datetime the import
of the real datetime would fail.
"""
-from datetime import timedelta, date, datetime, time, tzinfo
-
-from zope.interface import Interface, Attribute
+from datetime import date
+from datetime import datetime
+from datetime import time
+from datetime import timedelta
+from datetime import tzinfo
+
+from zope.interface import Attribute
+from zope.interface import Interface
from zope.interface import classImplements
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/interfaces.py b/contrib/python/zope.interface/py3/zope/interface/common/interfaces.py
index 70bd294f35..688e323a97 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/interfaces.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/interfaces.py
@@ -16,6 +16,7 @@
from zope.interface import Interface
from zope.interface import classImplements
+
class IException(Interface):
"Interface for `Exception`"
classImplements(Exception, IException)
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/io.py b/contrib/python/zope.interface/py3/zope/interface/common/io.py
index 0d6f3badfc..89f1ba8034 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/io.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/io.py
@@ -23,6 +23,7 @@ import io as abc
from zope.interface.common import ABCInterface
+
# pylint:disable=inherit-non-class,
# pylint:disable=no-member
diff --git a/contrib/python/zope.interface/py3/zope/interface/common/mapping.py b/contrib/python/zope.interface/py3/zope/interface/common/mapping.py
index d04333357f..eb9a2900b7 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/mapping.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/mapping.py
@@ -31,6 +31,7 @@ interfaces in this module.
from zope.interface import Interface
from zope.interface.common import collections
+
class IItemMapping(Interface):
"""Simplest readable mapping object
"""
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 5edc73dc6a..738f76d42a 100644
--- a/contrib/python/zope.interface/py3/zope/interface/common/sequence.py
+++ b/contrib/python/zope.interface/py3/zope/interface/common/sequence.py
@@ -33,6 +33,7 @@ __docformat__ = 'restructuredtext'
from zope.interface import Interface
from zope.interface.common import collections
+
class IMinimalSequence(collections.IIterable):
"""Most basic sequence interface.