Skip to content

Commit

Permalink
Update sample.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Sep 20, 2023
1 parent 53b4693 commit 5c54835
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/template/sample.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np


def add(a: int, b: int) -> int:
def add(a: float, b: float) -> float:
"""
A function that adds two numbers.
Expand All @@ -14,13 +14,13 @@ def add(a: int, b: int) -> int:
Returns
-------
int
float
The sum of a and b.
"""
return a + b

def make_array(val: int, length: int = 3) -> np.ndarray:
def make_array(val: float | float, length: int = 3) -> np.ndarray:
"""
A function to transform a number into a numpy array.
Expand Down

0 comments on commit 5c54835

Please sign in to comment.