New submission from David Lambert <[email protected]>:

math.fabs returns float.
The documentation should say so, and help(math.fabs) should include the 
expected return type  -> float

fabs(x, /) -> float
    Return the absolute value of the float x.

I did not check, but expect these annotations recommendations are pervasive 
throughout the python libraries.

----------
assignee: docs@python
components: Documentation
messages: 396582
nosy: David Lambert, docs@python
priority: normal
severity: normal
status: open
title: help(math.fabs)
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44519>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to