mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-11 00:59:49 +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…
x
Reference in New Issue
Block a user