Get dict completions mostly working

This commit is contained in:
Dave Halter committed 2019-12-30 03:34:18 +01:00
1 parent 7e769b87f3
commit 9fa4811425
5 files changed
+60 -50

No files matched your search

+1 -1
View File
@@ -410,7 +410,7 @@ class DirectObjectAccess(object):
return [self._create_access(module), access]
def get_safe_value(self):
if type(self._obj) in (bool, bytes, float, int, str, unicode, slice):
if type(self._obj) in (bool, bytes, float, int, str, unicode, slice) or self._obj is None:
return self._obj
raise ValueError("Object is type %s and not simple" % type(self._obj))