mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
PY-21692 Fixed: Return type of sum(List[Decimal]) is 'Any' (should be 'Decimal')
Add skeletons for builtin sum function
This commit is contained in:
@@ -229,6 +229,16 @@ def max(*args, key=None, default=None):
|
||||
pass
|
||||
|
||||
|
||||
def sum(iterable, start=0):
|
||||
"""Sums start and the items of an iterable from left to right and returns
|
||||
the total.
|
||||
|
||||
:type iterable: collections.Iterable[T]
|
||||
:rtype: T
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
def next(iterator, default=None):
|
||||
"""Return the next item from the iterator.
|
||||
|
||||
|
||||
@@ -232,6 +232,16 @@ def max(*args, key=None, default=None):
|
||||
pass
|
||||
|
||||
|
||||
def sum(iterable, start=0):
|
||||
"""Sums start and the items of an iterable from left to right and returns
|
||||
the total.
|
||||
|
||||
:type iterable: collections.Iterable[T]
|
||||
:rtype: T
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
def next(iterator, default=None):
|
||||
"""Return the next item from the iterator.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user