Skip to content

Commit eb9fa41

Browse files
authored
fix: concatenate time series value with unpacking instead of + (#1076)
1 parent a64be7e commit eb9fa41

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

src/braket/circuits/text_diagram_builders/ascii_circuit_diagram.py

-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def _create_diagram_column(
167167
return cls._create_output(symbols, connections, circuit_qubits, global_phase)
168168

169169
# Ignore flake8 issue caused by Literal["above", "below", "both", "none"]
170-
# flake8: noqa: BCS005
171170
@classmethod
172171
def _draw_symbol(
173172
cls, symbol: str, symbols_width: int, connection: Literal["above", "below", "both", "none"]

src/braket/circuits/text_diagram_builders/text_circuit_diagram.py

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def _create_diagram_column(
6868
"""
6969

7070
# Ignore flake8 issue caused by Literal["above", "below", "both", "none"]
71-
# flake8: noqa: BCS005
7271
@classmethod
7372
@abstractmethod
7473
def _draw_symbol(

src/braket/circuits/text_diagram_builders/unicode_circuit_diagram.py

-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ def _update_connections(qubits: QubitSet, connections: dict[Qubit, str]) -> None
188188
connections[qubits[0]] = "below"
189189

190190
# Ignore flake8 issue caused by Literal["above", "below", "both", "none"]
191-
# flake8: noqa: BCS005
192191
@classmethod
193192
def _draw_symbol(
194193
cls,

src/braket/timings/time_series.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ def stitch(
259259
f"Boundary handler value {boundary} is not allowed. \
260260
Possible options are: 'mean', 'left', 'right'."
261261
)
262-
263-
new_values = self.values()[:-1] + [bndry_val] + other.values()[1:]
262+
new_values = [*self.values()[:-1], bndry_val, *other.values()[1:]]
264263

265264
for t, v in zip(new_times, new_values):
266265
new_time_series.put(t, v)

0 commit comments

Comments
 (0)