diff --git a/src/hamcrest/core/assert_that.py b/src/hamcrest/core/assert_that.py index a31cf3a..c594068 100644 --- a/src/hamcrest/core/assert_that.py +++ b/src/hamcrest/core/assert_that.py @@ -16,13 +16,11 @@ @overload -def assert_that(actual_or_assertion: T, matcher: Matcher[T], reason: str = "") -> None: - ... +def assert_that(actual_or_assertion: T, matcher: Matcher[T], reason: str = "") -> None: ... @overload -def assert_that(actual_or_assertion: bool, reason: str = "") -> None: - ... +def assert_that(actual_or_assertion: bool, reason: str = "") -> None: ... def assert_that(actual_or_assertion, matcher=None, reason=""): diff --git a/src/hamcrest/core/core/is_.py b/src/hamcrest/core/core/is_.py index dafe41c..da3c6b6 100644 --- a/src/hamcrest/core/core/is_.py +++ b/src/hamcrest/core/core/is_.py @@ -29,13 +29,11 @@ def describe_to(self, description: Description): @overload -def _wrap_value_or_type(x: Type) -> Matcher[object]: - ... +def _wrap_value_or_type(x: Type) -> Matcher[object]: ... @overload -def _wrap_value_or_type(x: T) -> Matcher[T]: - ... +def _wrap_value_or_type(x: T) -> Matcher[T]: ... def _wrap_value_or_type(x): @@ -46,18 +44,15 @@ def _wrap_value_or_type(x): @overload -def is_(x: Type) -> Matcher[Any]: - ... +def is_(x: Type) -> Matcher[Any]: ... @overload -def is_(x: Matcher[T]) -> Matcher[T]: - ... +def is_(x: Matcher[T]) -> Matcher[T]: ... @overload -def is_(x: T) -> Matcher[T]: - ... +def is_(x: T) -> Matcher[T]: ... def is_(x): diff --git a/src/hamcrest/core/core/isnot.py b/src/hamcrest/core/core/isnot.py index de26f68..74abbaf 100644 --- a/src/hamcrest/core/core/isnot.py +++ b/src/hamcrest/core/core/isnot.py @@ -30,13 +30,11 @@ def describe_mismatch(self, item: T, mismatch_description: Description) -> None: @overload -def _wrap_value_or_type(x: Type) -> Matcher[object]: - ... +def _wrap_value_or_type(x: Type) -> Matcher[object]: ... @overload -def _wrap_value_or_type(x: T) -> Matcher[T]: - ... +def _wrap_value_or_type(x: T) -> Matcher[T]: ... def _wrap_value_or_type(x): @@ -47,13 +45,11 @@ def _wrap_value_or_type(x): @overload -def is_not(match: Type) -> Matcher[object]: - ... +def is_not(match: Type) -> Matcher[object]: ... @overload -def is_not(match: Union[Matcher[T], T]) -> Matcher[T]: - ... +def is_not(match: Union[Matcher[T], T]) -> Matcher[T]: ... def is_not(match): diff --git a/src/hamcrest/library/collection/__init__.py b/src/hamcrest/library/collection/__init__.py index bf07a66..dbbd02b 100644 --- a/src/hamcrest/library/collection/__init__.py +++ b/src/hamcrest/library/collection/__init__.py @@ -1,4 +1,5 @@ """Matchers of collections.""" + from .is_empty import empty from .isdict_containing import has_entry from .isdict_containingentries import has_entries diff --git a/src/hamcrest/library/collection/isdict_containingentries.py b/src/hamcrest/library/collection/isdict_containingentries.py index 79341ff..fffa82c 100644 --- a/src/hamcrest/library/collection/isdict_containingentries.py +++ b/src/hamcrest/library/collection/isdict_containingentries.py @@ -73,20 +73,17 @@ def describe_to(self, description: Description) -> None: # Keyword argument form @overload -def has_entries(**keys_valuematchers: Union[Matcher[V], V]) -> Matcher[Mapping[str, V]]: - ... +def has_entries(**keys_valuematchers: Union[Matcher[V], V]) -> Matcher[Mapping[str, V]]: ... # Key to matcher dict form @overload -def has_entries(keys_valuematchers: Mapping[K, Union[Matcher[V], V]]) -> Matcher[Mapping[K, V]]: - ... +def has_entries(keys_valuematchers: Mapping[K, Union[Matcher[V], V]]) -> Matcher[Mapping[K, V]]: ... # Alternating key/matcher form @overload -def has_entries(*keys_valuematchers: Any) -> Matcher[Mapping[Any, Any]]: - ... +def has_entries(*keys_valuematchers: Any) -> Matcher[Mapping[Any, Any]]: ... def has_entries(*keys_valuematchers, **kv_args): diff --git a/src/hamcrest/library/number/iscloseto.py b/src/hamcrest/library/number/iscloseto.py index 579eeb8..83f4d8c 100644 --- a/src/hamcrest/library/number/iscloseto.py +++ b/src/hamcrest/library/number/iscloseto.py @@ -62,13 +62,11 @@ def describe_to(self, description: Description) -> None: @overload -def close_to(value: float, delta: float) -> Matcher[float]: - ... +def close_to(value: float, delta: float) -> Matcher[float]: ... @overload -def close_to(value: Decimal, delta: Decimal) -> Matcher[Decimal]: - ... +def close_to(value: Decimal, delta: Decimal) -> Matcher[Decimal]: ... def close_to(value, delta): diff --git a/src/hamcrest/library/object/hasproperty.py b/src/hamcrest/library/object/hasproperty.py index ea2519f..e65ff92 100644 --- a/src/hamcrest/library/object/hasproperty.py +++ b/src/hamcrest/library/object/hasproperty.py @@ -94,20 +94,17 @@ def has_property(name: str, match: Union[None, Matcher[V], V] = None) -> Matcher # Keyword argument form @overload -def has_properties(**keys_valuematchers: Union[Matcher[V], V]) -> Matcher[Any]: - ... +def has_properties(**keys_valuematchers: Union[Matcher[V], V]) -> Matcher[Any]: ... # Name to matcher dict form @overload -def has_properties(keys_valuematchers: Mapping[str, Union[Matcher[V], V]]) -> Matcher[Any]: - ... +def has_properties(keys_valuematchers: Mapping[str, Union[Matcher[V], V]]) -> Matcher[Any]: ... # Alternating name/matcher form @overload -def has_properties(*keys_valuematchers: Any) -> Matcher[Any]: - ... +def has_properties(*keys_valuematchers: Any) -> Matcher[Any]: ... def has_properties(*keys_valuematchers, **kv_args): diff --git a/src/hamcrest/library/text/substringmatcher.py b/src/hamcrest/library/text/substringmatcher.py index ec7874c..a222d25 100644 --- a/src/hamcrest/library/text/substringmatcher.py +++ b/src/hamcrest/library/text/substringmatcher.py @@ -20,5 +20,4 @@ def describe_to(self, description: Description) -> None: ).append_description_of(self.substring) @abstractmethod - def relationship(self): - ... + def relationship(self): ...