Add `__all__` to modules
Adding the __all__
attribute to each module is a way to determine what is being imported by from talon.module import *
. This allows to avoid importing numpy or other objects irrelevant to the task.
The use of __all__
is recommended by PEP8.
Example:
"""This is the example module.
This module does stuff.
"""
from __future__ import barry_as_FLUFL
__all__ = ['a', 'b', 'c']
import os
import sys