diff options
| author | Jason Madden <jamadden@gmail.com> | 2020-02-05 08:12:53 -0600 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2020-02-05 08:12:53 -0600 |
| commit | c4805da768863207b5dd182b3c0dd2aacc7be92f (patch) | |
| tree | 33dcf9e36c451acfef2a6c0dcfb22280c32c24d0 /src/zope/interface/interface.py | |
| parent | 79be400cc9a5a8525db9e7869e401aede3d01d72 (diff) | |
| download | zope-interface-issue153.tar.gz | |
Add __all__ to all modules.issue153
Fixes #153
The items that went in each ``__all__`` are based on what is
documented:
$ rg --no-filename 'import' docs/ -trst | tr -s "[:blank:]" | sort | uniq | grep zope
>>> from pprint import pprint
>>> from zope.interface import *
>>> from zope.interface import Interface
>>> from zope.interface import Interface, Attribute, implementer
>>> from zope.interface import alsoProvides
>>> from zope.interface import classImplements
>>> from zope.interface import classImplementsOnly
>>> from zope.interface import directlyProvidedBy
>>> from zope.interface import directlyProvides
>>> from zope.interface import implementedBy
>>> from zope.interface import implementer
>>> from zope.interface import implementer_only
>>> from zope.interface import noLongerProvides
>>> from zope.interface import providedBy
>>> from zope.interface import provider
>>> from zope.interface.adapter import AdapterRegistry
>>> from zope.interface.declarations import Declaration
>>> from zope.interface.declarations import InstanceDeclarations
>>> from zope.interface.declarations import ProvidesClass
>>> from zope.interface.declarations import named
>>> from zope.interface.exceptions import BrokenImplementation
>>> from zope.interface.exceptions import Invalid
>>> from zope.interface.interface import Specification
>>> from zope.interface.interface import adapter_hooks
>>> from zope.interface.verify import verifyObject
>>> import gc
>>> import zope.interface
And also some personal judgement about what the public API is that I'm
more than happy to have reviewed.
Diffstat (limited to 'src/zope/interface/interface.py')
| -rw-r--r-- | src/zope/interface/interface.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/zope/interface/interface.py b/src/zope/interface/interface.py index 57998e0..1681c75 100644 --- a/src/zope/interface/interface.py +++ b/src/zope/interface/interface.py @@ -23,6 +23,15 @@ from zope.interface._compat import _use_c_impl from zope.interface.exceptions import Invalid from zope.interface.ro import ro +__all__ = [ + # Most of the public API from this module is directly exported + # from zope.interface. The only remaining public API intended to + # be imported from here should be those few things documented as + # such. + 'InterfaceClass', + 'Specification', + 'adapter_hooks', +] CO_VARARGS = 4 CO_VARKEYWORDS = 8 |
