Skip to content

Commit 7ad6c64

Browse files
Add typing to maths/add.py (#7064)
* Add typing to maths/add.py https://stackoverflow.com/questions/50928592/mypy-type-hint-unionfloat-int-is-there-a-number-type * Update add.py * Update add.py
1 parent 6118b05 commit 7ad6c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/add.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55

6-
def add(a, b):
6+
def add(a: float, b: float) -> float:
77
"""
88
>>> add(2, 2)
99
4

0 commit comments

Comments
 (0)