Skip to content

Commit

Permalink
fix(typing): Added __all__ to package root
Browse files Browse the repository at this point in the history
Refs #175
  • Loading branch information
last-partizan authored and offbyone committed Dec 12, 2021
1 parent 8012b42 commit 7b4178a
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hamcrest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from hamcrest.core import *
from hamcrest.core import __all__ as _core_vars
from hamcrest.library import *
from hamcrest.library import __all__ as _library_vars

__version__ = "2.0.3.dev0"
__author__ = "Chris Rose"
__copyright__ = "Copyright 2020 hamcrest.org"
__license__ = "BSD, see License.txt"

__all__ = []
__all__.extend(_core_vars)
__all__.extend(_library_vars)
18 changes: 18 additions & 0 deletions src/hamcrest/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,21 @@
__author__ = "Jon Reid"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = "BSD, see License.txt"

__all__ = [
"assert_that",
"all_of",
"any_of",
"anything",
"calling",
"described_as",
"equal_to",
"instance_of",
"is_",
"is_not",
"none",
"not_",
"not_none",
"raises",
"same_instance",
]
17 changes: 17 additions & 0 deletions src/hamcrest/core/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,20 @@
__author__ = "Jon Reid"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = "BSD, see License.txt"

__all__ = [
"all_of",
"any_of",
"anything",
"calling",
"described_as",
"equal_to",
"instance_of",
"is_",
"is_not",
"none",
"not_",
"not_none",
"raises",
"same_instance",
]
15 changes: 15 additions & 0 deletions src/hamcrest/library/collection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@
__author__ = "Chris Rose"
__copyright__ = "Copyright 2013 hamcrest.org"
__license__ = "BSD, see License.txt"

__all__ = [
"contains",
"contains_exactly",
"contains_inanyorder",
"empty",
"has_entries",
"has_entry",
"has_item",
"has_items",
"has_key",
"has_value",
"is_in",
"only_contains",
]

0 comments on commit 7b4178a

Please sign in to comment.