Give singleton type variables the type's doc string.

This reads better than "typeof(b1)".
This commit is contained in:
Jakob Stoklund Olesen
2017-04-03 10:06:08 -07:00
parent ec29283abb
commit d4d76c8d76

View File

@@ -285,7 +285,7 @@ class TypeVar(object):
bools = (scalar.bits, scalar.bits)
tv = TypeVar(
typ.name, 'typeof({})'.format(typ),
typ.name, typ.__doc__,
ints, floats, bools, simd=lanes)
tv.singleton_type = typ
return tv