Skip to content

Commit 1fd20fc

Browse files
committed
typecheck2
1 parent d3b4d83 commit 1fd20fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cirq-google/cirq_google/serialization/circuit_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def _deserialize_gate_op(
764764
constants=constants,
765765
deserialized_constants=deserialized_constants,
766766
)
767-
if sub_gate is None:
767+
if sub_gate is None or subgate.gate is None:
768768
raise ValueError(
769769
"Not a valid gate for RandomGateChannel: " f"{operation_proto}"
770770
) # pragma: nocover

0 commit comments

Comments
 (0)