Fix make-lint crash under certain circumstances.

ticket 2136
This commit is contained in:
Jan Cholasta authored and Martin Kosek committed 2011-11-30 17:09:22 +01:00
1 parent 135ccf89de
commit 27931dcb29
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ class IPATypeChecker(TypeChecker):
inferred = []
for owner in inferred:
if not isinstance(owner, Class) and not isinstance(owner, Instance):
if not isinstance(owner, Class) and type(owner) is not Instance:
continue
ignored = self._find_ignored_attrs(owner)