@@ -305,7 +305,10 @@ def _first_moment_operating_on(
305305 return None
306306
307307 def next_moment_operating_on (
308- self , qubits : Iterable ['cirq.Qid' ], start_moment_index : int = 0 , max_distance : int = None
308+ self ,
309+ qubits : Iterable ['cirq.Qid' ],
310+ start_moment_index : int = 0 ,
311+ max_distance : Optional [int ] = None ,
309312 ) -> Optional [int ]:
310313 """Finds the index of the next moment that touches the given qubits.
311314
@@ -2128,7 +2131,7 @@ def _push_frontier(
21282131 self ,
21292132 early_frontier : Dict ['cirq.Qid' , int ],
21302133 late_frontier : Dict ['cirq.Qid' , int ],
2131- update_qubits : Iterable ['cirq.Qid' ] = None ,
2134+ update_qubits : Optional [ Iterable ['cirq.Qid' ] ] = None ,
21322135 ) -> Tuple [int , int ]:
21332136 """Inserts moments to separate two frontiers.
21342137
@@ -2198,7 +2201,10 @@ def _insert_operations(
21982201 )
21992202
22002203 def insert_at_frontier (
2201- self , operations : 'cirq.OP_TREE' , start : int , frontier : Dict ['cirq.Qid' , int ] = None
2204+ self ,
2205+ operations : 'cirq.OP_TREE' ,
2206+ start : int ,
2207+ frontier : Optional [Dict ['cirq.Qid' , int ]] = None ,
22022208 ) -> Dict ['cirq.Qid' , int ]:
22032209 """Inserts operations inline at frontier.
22042210
@@ -2389,7 +2395,9 @@ def with_noise(self, noise: 'cirq.NOISE_MODEL_LIKE') -> 'cirq.Circuit':
23892395
23902396
23912397def _pick_inserted_ops_moment_indices (
2392- operations : Sequence ['cirq.Operation' ], start : int = 0 , frontier : Dict ['cirq.Qid' , int ] = None
2398+ operations : Sequence ['cirq.Operation' ],
2399+ start : int = 0 ,
2400+ frontier : Optional [Dict ['cirq.Qid' , int ]] = None ,
23932401) -> Tuple [Sequence [int ], Dict ['cirq.Qid' , int ]]:
23942402 """Greedily assigns operations to moments.
23952403
0 commit comments