Skip to content

Commit

Permalink
A few more numpy warning squashes (#4072)
Browse files Browse the repository at this point in the history
Missed two in #4065
  • Loading branch information
dabacon committed Apr 29, 2021
1 parent b8334a1 commit 8e90bd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cirq-google/cirq_google/arg_func_langs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_unsupported_function_language():
[
((True, False), {'arg_value': {'bool_values': {'values': [True, False]}}}),
(
np.array([True, False], dtype=np.bool),
np.array([True, False], dtype=bool),
{'arg_value': {'bool_values': {'values': [True, False]}}},
),
],
Expand Down
2 changes: 1 addition & 1 deletion cirq-google/cirq_google/engine/engine_program_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def test_run_delegation(create_job, get_results):

assert results == cirq.Result(
params=cirq.ParamResolver({'a': 1.0}),
measurements={'q': np.array([[False], [True], [True], [False]], dtype=np.bool)},
measurements={'q': np.array([[False], [True], [True], [False]], dtype=bool)},
)


Expand Down
2 changes: 1 addition & 1 deletion cirq-google/cirq_google/op_serializer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_val(op):
(List[bool], (True, False), {'arg_value': {'bool_values': {'values': [True, False]}}}),
(
List[bool],
np.array([True, False], dtype=np.bool),
np.array([True, False], dtype=bool),
{'arg_value': {'bool_values': {'values': [True, False]}}},
),
(sympy.Symbol, sympy.Symbol('x'), {'symbol': 'x'}),
Expand Down

0 comments on commit 8e90bd6

Please sign in to comment.