mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Add typing to maths/abs.py (#7060)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
"""Absolute Value."""
|
||||
|
||||
|
||||
def abs_val(num):
|
||||
def abs_val(num: float) -> float:
|
||||
"""
|
||||
Find the absolute value of a number.
|
||||
|
||||
|
Reference in New Issue
Block a user