Kamil Kisiel committed 4c3fd1a

Use __all__ as not to pollute the namespace of the top-level module.

  • Participants
  • Parent commits c78e6ef

Comments (0)

Files changed (4)

File covenant/

 import sys
+from covenant.annotations import *
 from covenant.base import *
 from covenant.conditions import *
+from covenant.exceptions import *
 from covenant.invariant import *
-from covenant.exceptions import *
-from covenant.annotations import *

File covenant/

         return value
     return wrapped_func
+__all__ = ["constrain"]

File covenant/

         wrapped_func._original_func = original_func
         return wrapped_func
     return _post
+__all__ = ["pre", "post"]

File covenant/

         return cls
     return _invariant
+__all__ = ["invariant"]