[pypy-svn] r12990 - pypy/dist/pypy/annotation

pedronis at codespeak.net pedronis at codespeak.net
Thu Jun 2 01:46:10 CEST 2005


Author: pedronis
Date: Thu Jun  2 01:46:10 2005
New Revision: 12990

Modified:
   pypy/dist/pypy/annotation/model.py
Log:
cover with default also SomeObject(knowntype=tuple) etc



Modified: pypy/dist/pypy/annotation/model.py
==============================================================================
--- pypy/dist/pypy/annotation/model.py	(original)
+++ pypy/dist/pypy/annotation/model.py	Thu Jun  2 01:46:10 2005
@@ -420,7 +420,7 @@
         else:
             flattened = args
         for arg in flattened:
-            if arg.__class__ == SomeObject and arg.knowntype == object:
+            if arg.__class__ == SomeObject and arg.knowntype != type:
                 return  SomeObject()
         bookkeeper = pypy.annotation.bookkeeper.getbookkeeper()
         bookkeeper.warning("no precise annotation supplied for %s%r" % (name, args))



More information about the Pypy-commit mailing list