Commits

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/__init__.py

 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/annotations.py

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

File covenant/conditions.py

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

File covenant/invariant.py

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