Fix an issue where compiled object api types raised an error.

This commit is contained in:
Dave Halter
2016-12-21 00:23:50 +01:00
parent 90b76ee3ec
commit 464968aed7
3 changed files with 16 additions and 11 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ class CompiledName(AbstractNameDefinition):
@property
def api_type(self):
return self.infer()[0].api_type
return next(iter(self.infer())).api_type
@underscore_memoization
def infer(self):