1
0
forked from VimPlug/jedi

BoundMethods now have access to the function that they are using

This commit is contained in:
Dave Halter
2018-08-03 00:15:11 +02:00
parent e576457a43
commit f25310e0b9
5 changed files with 72 additions and 66 deletions

View File

@@ -470,7 +470,7 @@ else:
class _SPECIAL_OBJECTS(object):
FUNCTION_CLASS = types.FunctionType
METHOD_CLASS = type(DirectObjectAccess.py__bool__)
BOUND_METHOD_CLASS = type(DirectObjectAccess(None, None).py__bool__)
MODULE_CLASS = types.ModuleType
GENERATOR_OBJECT = _a_generator(1.0)
BUILTINS = builtins