8000 Improving type support for `math.prod` by cake-monotone · Pull Request #13572 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Improving type support for math.prod #13572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix pr number in the comment
  • Loading branch information
cake-monotone committed Mar 2, 2025
commit a57ec2ec873fe00e033abb8ec35c2caafe34aed2
2 changes: 1 addition & 1 deletion stdlib/math.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ _SupportsProdNoDefaultT = TypeVar("_SupportsProdNoDefaultT", bound=_SupportsProd
# This stub is based on the type stub for `builtins.sum`.
# Like `builtins.sum`, it cannot be precisely represented in a type stub
# without introducing many false positives.
# For more details on its limitations and false positives, see #7578.
# For more details on its limitations and false positives, see #13572.
# Instead, just like `builtins.sum`, we explicitly handle several useful cases.
@overload
def prod(iterable: Iterable[bool | _LiteralInteger], /, *, start: int = 1) -> int: ... # type: ignore[overload-overlap]
Expand Down
0