Skip to content

Commit

Permalink
Add __all__ to core
Browse files Browse the repository at this point in the history
Missing __all__ causes Pylance claim that assert_that has not been imported for wildcard imports.

Fixes hamcrest#175
  • Loading branch information
felixhammerl committed Jun 21, 2021
1 parent 3b11537 commit a93a67a
Showing 1 changed file with 18 additions and 0 deletions.
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",
"described_as",
"is_",
"anything",
"equal_to",
"instance_of",
"none",
"not_none",
"is_not",
"not_",
"same_instance",
"calling",
"raises"
]

0 comments on commit a93a67a

Please sign in to comment.