Skip to content

Commit

Permalink
fix black (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella authored Jun 14, 2019
1 parent 1c7e971 commit 9a1cd79
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/core/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def __init__(self, a: int, b: float, c: Complex, d: int) -> None:
class Bar:
@validated()
def __init__(
self, x_list: List[Foo], x_dict: Dict[int, Foo], input_fields: List[Foo]
self,
x_list: List[Foo],
x_dict: Dict[int, Foo],
input_fields: List[Foo],
) -> None:
self.x_list = x_list
self.x_dict = x_dict
Expand Down Expand Up @@ -116,11 +119,17 @@ def compare_vals(x, y, z):

compare_tpes(bar02.x_list, bar02.x_list, bar03.x_list, tpe=list)
compare_tpes(bar02.x_dict, bar02.x_dict, bar03.x_dict, tpe=dict)
compare_tpes(bar02.input_fields, bar02.input_fields, bar03.input_fields, tpe=list)
compare_tpes(
bar02.input_fields, bar02.input_fields, bar03.input_fields, tpe=list
)

compare_vals(len(bar02.x_list), len(bar02.x_list), len(bar03.x_list))
compare_vals(len(bar02.x_dict), len(bar02.x_dict), len(bar03.x_dict))
compare_vals(len(bar02.input_fields), len(bar02.input_fields), len(bar03.input_fields))
compare_vals(
len(bar02.input_fields),
len(bar02.input_fields),
len(bar03.input_fields),
)

compare_vals(bar02.x_list, bar02.x_list, bar03.x_list)
compare_vals(bar02.x_dict, bar02.x_dict, bar03.x_dict)
Expand Down

0 comments on commit 9a1cd79

Please sign in to comment.