Add some more entries to zope.interface.interfaces.__all__

`ComponentLookupError`, `Invalid`, `Registered`, and `Unregistered` are
all documented
(https://zopeinterface.readthedocs.io/en/latest/api/components.html), so
it seems odd not to list them in `__all__`.  `ObjectEvent` isn't
documented there, but it seems reasonable to export it as a base class
for similar events.
This commit is contained in:
Colin Watson 2021-09-02 10:45:32 +01:00
parent 42571b5a89
commit e9eb5850ef
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,8 @@
- Add missing Trove classifier showing support for Python 3.9.
- Add some more entries to ``zope.interface.interfaces.__all__``.
5.4.0 (2021-04-15)
==================

View File

@ -20,6 +20,7 @@ from zope.interface.interface import Interface
from zope.interface.declarations import implementer
__all__ = [
'ComponentLookupError',
'IAdapterRegistration',
'IAdapterRegistry',
'IAttribute',
@ -32,6 +33,7 @@ __all__ = [
'IInterface',
'IInterfaceDeclaration',
'IMethod',
'Invalid',
'IObjectEvent',
'IRegistered',
'IRegistration',
@ -40,6 +42,9 @@ __all__ = [
'ISubscriptionAdapterRegistration',
'IUnregistered',
'IUtilityRegistration',
'ObjectEvent',
'Registered',
'Unregistered',
]
# pylint:disable=inherit-non-class,no-method-argument,no-self-argument