fixed type hint in addition
This commit is contained in:
parent
8a992b7089
commit
1e249d7645
1 changed files with 1 additions and 1 deletions
2
math.py
2
math.py
|
@ -1,4 +1,4 @@
|
||||||
def addition(a: float, b: float) -> str: # this does not seem right! why str?
|
def addition(a: float, b: float) -> float: # this does not seem right! why str?
|
||||||
return a + b
|
return a + b
|
||||||
|
|
||||||
def subtraction(a: float, b: float) -> float:
|
def subtraction(a: float, b: float) -> float:
|
||||||
|
|
Loading…
Reference in a new issue