Skip to content

Commit 2ae5a06

Browse files
committed
Add typing
1 parent e3a2393 commit 2ae5a06

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
def add(x, y):
1+
def add(x: float, y: float) -> float:
22
return x + y
33

4-
def sub(x, y):
4+
def sub(x: float, y: float) -> float:
55
return x - y
66

7-
def mult(x, y):
7+
def mult(x: float, y: float) -> float:
88
return x*y
99

10-
def div(x, y):
10+
def div(x: float, y: float) -> float:
1111
return x/y
1212

13-
def mod(x, y):
13+
def idiv(x: int, y: int) -> int:
14+
return x//y
15+
16+
def mod(x: int, y: int) -> int:
1417
return x % y

0 commit comments

Comments
 (0)