PY-20757 Fixed: Incorrect warning about expected attribute

Make min skeletons generic.
This commit is contained in:
Semyon Proshev
2016-11-10 18:14:00 +03:00
committed by Semyon Proshev
parent a77aed6035
commit c58302f45c
4 changed files with 34 additions and 1 deletions

View File

@@ -209,6 +209,16 @@ def map(function, sequence, *sequence_1):
pass
def min(*args, key=None, default=None):
"""Return the smallest item in an iterable or the smallest of two or more
arguments.
:type args: tuple[T]
:rtype: T
"""
pass
def next(iterator, default=None):
"""Return the next item from the iterator.

View File

@@ -225,7 +225,8 @@ def min(*args, key=None, default=None):
"""Return the smallest item in an iterable or the smallest of two or more
arguments.
:rtype: object | unknown
:type args: tuple[T]
:rtype: T
"""
pass