Skip to content

Commit

Permalink
change a staticmethod to a classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Mar 6, 2024
1 parent 17307a2 commit af08fe7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ def _build_box(
symbol = f"┤ {symbol} ├"
return top, symbol, bottom

@staticmethod
@classmethod
def _build_verbatim_box(
cls,
symbol: Literal["StartVerbatim", "EndVerbatim"],
connection: Literal["above", "below", "both", "none"],
) -> str:
Expand All @@ -267,7 +268,7 @@ def _build_verbatim_box(
top = "║"
symbol = "╨"
top = _fill_symbol(top, " ")
symbol = _fill_symbol(symbol, UnicodeCircuitDiagram._qubit_line_character())
symbol = _fill_symbol(symbol, cls._qubit_line_character())
bottom = _fill_symbol(bottom, " ")

return top, symbol, bottom
Expand Down

0 comments on commit af08fe7

Please sign in to comment.