Skip to content

Commit

Permalink
Fix docstring lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Oct 9, 2018
1 parent 624b5d7 commit 61b8899
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions qiskit/tools/visualization/_circuit_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def circuit_drawer(circuit,
Returns:
PIL.Image: an in-memory representation of the circuit diagram
Raises:
VisualizationError: when an invalid output method is selected
"""

im = None
Expand Down Expand Up @@ -116,8 +119,7 @@ def circuit_drawer(circuit,
style)
if im and interactive:
im.show()
else:
return im
return im


# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -320,8 +322,8 @@ def latex_circuit_drawer(circuit,
'be removed in a future release. Instead use the '
'circuit_drawer() function with the `output` kwarg set to '
'`latex`.', DeprecationWarning)
_latex_circuit_drawer(circuit, basis=basis, scale=scale, filename=filename,
style=style)
return _latex_circuit_drawer(circuit, basis=basis, scale=scale,
filename=filename, style=style)


def _latex_circuit_drawer(circuit,
Expand Down Expand Up @@ -426,8 +428,8 @@ def generate_latex_source(circuit, filename=None,
' be removed in a future release. Instead use the '
'circuit_drawer() function with the `output` kwarg set to '
'`latex_source`.', DeprecationWarning)
_generate_latex_source(circuit, filename=filename, basis=basis,
scale=scale, style=style)
return _generate_latex_source(circuit, filename=filename, basis=basis,
scale=scale, style=style)


def _generate_latex_source(circuit, filename=None,
Expand Down Expand Up @@ -1487,8 +1489,8 @@ def matplotlib_circuit_drawer(circuit,
'will be removed in a future release. Instead use the '
'circuit_drawer() function with the `output` kwarg set to '
'`python`.', DeprecationWarning)
_matplotlib_circuit_drawer(circuit, basis=basis, scale=scale,
filename=filename, style=style)
return _matplotlib_circuit_drawer(circuit, basis=basis, scale=scale,
filename=filename, style=style)


def _matplotlib_circuit_drawer(circuit,
Expand Down

0 comments on commit 61b8899

Please sign in to comment.