mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-17 17:35:03 +08:00
Use types instead of special objects (see also #988)
This commit is contained in:
@@ -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