1.1 --- a/simplify/annotate.py Sat Jul 28 01:58:06 2007 +0200
1.2 +++ b/simplify/annotate.py Sat Jul 28 21:08:44 2007 +0200
1.3 @@ -1208,8 +1208,8 @@
1.4 raise AnnotationMessage, "Invocation provides unwanted *args."
1.5 elif subprogram.star is not None:
1.6 param, default = subprogram.star
1.7 - if not hasattr(default, "types"):
1.8 - subprogram.star = param, self.dispatch(default) # NOTE: Review reprocessing.
1.9 + if not hasattr(default, "types") or not default.types:
1.10 + self.dispatch(default) # NOTE: Review reprocessing.
1.11 items.append((param, default.types))
1.12
1.13 if dstar_types is not None:
1.14 @@ -1220,8 +1220,8 @@
1.15 raise AnnotationMessage, "Invocation provides unwanted **args."
1.16 elif subprogram.dstar is not None:
1.17 param, default = subprogram.dstar
1.18 - if not hasattr(default, "types"):
1.19 - subprogram.dstar = param, self.dispatch(default) # NOTE: Review reprocessing.
1.20 + if not hasattr(default, "types") or not default.types:
1.21 + self.dispatch(default) # NOTE: Review reprocessing.
1.22 items.append((param, default.types))
1.23
1.24 # Record the parameter types.