Use types instead of special objects (see also #988)
This commit is contained in:
1 parent
969d029499
commit
3a4dc94ee6
2 files changed
+3
-3
No files matched your search
@@ -576,9 +576,9 @@ def _a_generator(foo):
|
||||
|
||||
|
||||
_SPECIAL_OBJECTS = {
|
||||
'FUNCTION_CLASS': type(load_module),
|
||||
'FUNCTION_CLASS': types.FunctionType,
|
||||
'METHOD_CLASS': type(CompiledObject.is_class),
|
||||
'MODULE_CLASS': type(os),
|
||||
'MODULE_CLASS': types.ModuleType,
|
||||
'GENERATOR_OBJECT': _a_generator(1.0),
|
||||
'BUILTINS': _builtins,
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ class CompiledSubProcess(object):
|
||||
(executable, '-m', 'jedi.evaluate.compiled.subprocess')
|
||||
)
|
||||
|
||||
def command(self):
|
||||
def command(self, command):
|
||||
return self._send()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user