Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Oct 14, 2020
1 parent fc631fe commit 718b85f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hypothesis-python/tests/nocover/test_build_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def use_annotations(
pass


def use_signature(self, testA: int, testB: str = None, *, testX: float, testY: List[str]):
def use_signature(
self, testA: int, testB: str = None, *, testX: float, testY: List[str]
):
pass


Expand All @@ -75,7 +77,7 @@ def test_build_using_different_signature_and_annotations(val):
assert isinstance(val, ModelWithAlias)


def use_bad_signature(self, testA: 1, testB: "not_a_type", *, testX: float):
def use_bad_signature(self, testA: 1, *, testX: float):
pass


Expand All @@ -87,6 +89,7 @@ def __init__(self, **kwargs):
assert set(kwargs) == {"testX"}
assert isinstance(kwargs["testX"], float)


@given(st.builds(ModelWithBadAliasSignature))
def test_build_with_non_types_in_signature(val):
assert isinstance(val, ModelWithBadAliasSignature)

0 comments on commit 718b85f

Please sign in to comment.