Enable functools stubs (PY-26167)

This commit is contained in:
Semyon Proshev
2017-12-12 18:44:16 +03:00
parent 0ba6558ff0
commit 18f29e0174
2 changed files with 1 additions and 17 deletions

View File

@@ -1,16 +0,0 @@
"""Skeleton for 'functools' stdlib module."""
def reduce(function, sequence, initial=None):
"""Apply a function of two arguments cumulatively to the items of a
sequence, from left to right, so as to reduce the sequence to a single
value.
:type function: collections.Callable
:type sequence: collections.Iterable
:type initial: T
:rtype: T | unknown
"""
return initial

View File

@@ -41,7 +41,7 @@ import java.io.File
object PyTypeShed {
private val ONLY_SUPPORTED_PY2_MINOR = 7
private val SUPPORTED_PY3_MINORS = 2..7
val WHITE_LIST = setOf(TYPING, "six", "__builtin__", "builtins", "exceptions", "types", "datetime")
val WHITE_LIST = setOf(TYPING, "six", "__builtin__", "builtins", "exceptions", "types", "datetime", "functools")
private val BLACK_LIST = setOf<String>()
/**