Give singleton type variables the type's doc string.
This reads better than "typeof(b1)".
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user