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

This commit is contained in:
Dave Halter committed 2016-12-21 00:23:50 +01:00
1 parent 90b76ee3ec
commit 464968aed7
3 files changed
+16 -11

No files matched your search

+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):