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