Skip to content

Commit c4d347e

Browse files
committed
Apply ruff formatting fixes
1 parent b76746b commit c4d347e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

physics/hamiltonian.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"""
2424

2525

26-
def classical_hamiltonian(mass: float, velocity: float, potential_energy: float) -> float:
26+
def classical_hamiltonian(
27+
mass: float, velocity: float, potential_energy: float
28+
) -> float:
2729
"""
2830
Compute the classical Hamiltonian H = T + V for a particle,
2931
where T = 0.5 * m * v^2 is the kinetic energy.
@@ -94,4 +96,3 @@ def quantum_hamiltonian(
9496
from doctest import testmod
9597

9698
testmod()
97-

0 commit comments

Comments
 (0)