mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Add typing to maths/abs.py (#7060)
This commit is contained in:
parent
922887c386
commit
2423760e1d
|
@ -1,7 +1,7 @@
|
|||
"""Absolute Value."""
|
||||
|
||||
|
||||
def abs_val(num):
|
||||
def abs_val(num: float) -> float:
|
||||
"""
|
||||
Find the absolute value of a number.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user