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:
Saksham Chawla 2022-10-13 15:15:20 +05:30 committed by GitHub
parent 6118b05f0e
commit 7ad6c64029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ Just to check
"""
def add(a, b):
def add(a: float, b: float) -> float:
"""
>>> add(2, 2)
4