Skip to content

Commit

Permalink
Add example of class attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Mar 26, 2024
1 parent a4cbd3b commit 18f1366
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions example_docs/api_example/electron.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ class Electron:
from api_example import Electron
ELECTRON = Electron(size="2GB", name="QuantumComputing")
Attributes:
size (str): How big the Electron is.
name: What the Electron is called.
"""

# Regression test for https://github.com/Qiskit/qiskit_sphinx_theme/issues/50.
Expand Down

0 comments on commit 18f1366

Please sign in to comment.