mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
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
This commit is contained in:
parent
6118b05f0e
commit
7ad6c64029
|
@ -3,7 +3,7 @@ Just to check
|
|||
"""
|
||||
|
||||
|
||||
def add(a, b):
|
||||
def add(a: float, b: float) -> float:
|
||||
"""
|
||||
>>> add(2, 2)
|
||||
4
|
||||
|
|
Loading…
Reference in New Issue
Block a user