mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
Enable functools stubs (PY-26167)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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>()
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user