Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typing): Added __all__ to package root #190

Merged
merged 2 commits into from
Dec 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/hamcrest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from hamcrest.core import *
from hamcrest.library import *
from hamcrest import core, library

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

__all__ = []
__all__.extend(core.__all__)
__all__.extend(library.__all__)
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",
]