Skip to content

Commit 40722be

Browse files
authored
Fix missing None types on test functions (#7494)
- Noticed that these functions were throwing warnings since there are type annotations defined but the return type was not defined.
1 parent 6d791fa commit 40722be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cirq-google/cirq_google/experimental/analog_experiments/analog_trajectory_util_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_get_full_trajectory_with_resolved_idles(sparse_trajectory: list[FreqMap
115115
)
116116

117117

118-
def test_plot_with_unresolved_parameters():
118+
def test_plot_with_unresolved_parameters() -> None:
119119
traj1: FreqMapType = (20 * tu.ns, {"q0_1": sympy.Symbol("qf")}, {})
120120
traj2: FreqMapType = (sympy.Symbol("t"), {"q0_2": 8 * tu.GHz}, {})
121121
analog_traj = atu.AnalogTrajectory.from_sparse_trajectory([traj1, traj2])
@@ -124,7 +124,7 @@ def test_plot_with_unresolved_parameters():
124124
analog_traj.plot()
125125

126126

127-
def test_analog_traj_plot():
127+
def test_analog_traj_plot() -> None:
128128
traj1: FreqMapType = (5 * tu.ns, {"q0_1": sympy.Symbol("qf")}, {("q0_0", "q0_1"): 2 * tu.MHz})
129129
traj2: FreqMapType = (sympy.Symbol("t"), {"q0_2": 8 * tu.GHz}, {})
130130
analog_traj = atu.AnalogTrajectory.from_sparse_trajectory([traj1, traj2])

0 commit comments

Comments
 (0)