Functions with a return annotation including a dangling comma to represent an indeterminate number of elements are not properly documented. For example, def thing() -> tuple[int,]
is documented as thing() -> tuple[int]
, misrepresenting the function as returning only a single value.
It should be possible to detect this in the return annotation and document it properly.
Happens for both Python 3.10 and 3.11rc1.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too