1
0
forked from VimPlug/jedi

None issue fix for static analysis

This commit is contained in:
Dave Halter
2014-05-13 01:21:32 +02:00
parent 00e43d4585
commit a2b483b4f5
5 changed files with 14 additions and 8 deletions
+5
View File
@@ -35,6 +35,11 @@ class NameFinder(object):
self.position = position
def find(self, scopes, resolve_decorator=True):
if unicode(self.name_str) == 'None':
# Filter None, because it's really just a keyword, nobody wants to
# access it.
return []
names = self.filter_name(scopes)
types = self._names_to_types(names, resolve_decorator)