mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-07 00:41:51 +08:00
Get the subprocess mostly working
This commit is contained in:
@@ -274,9 +274,9 @@ class DirectObjectAccess(object):
|
||||
return None
|
||||
|
||||
def get_safe_value(self):
|
||||
if type(self._obj) in (float, int, str, unicode, slice, type(Ellipsis)):
|
||||
if type(self._obj) in (bool, bytes, float, int, str, unicode, slice, type(Ellipsis)):
|
||||
return self._obj
|
||||
raise ValueError
|
||||
raise ValueError("Object is type %s and not simple" % type(self._obj))
|
||||
|
||||
def get_api_type(self):
|
||||
obj = self._obj
|
||||
|
||||
Reference in New Issue
Block a user