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)
|
bools = (scalar.bits, scalar.bits)
|
||||||
|
|
||||||
tv = TypeVar(
|
tv = TypeVar(
|
||||||
typ.name, 'typeof({})'.format(typ),
|
typ.name, typ.__doc__,
|
||||||
ints, floats, bools, simd=lanes)
|
ints, floats, bools, simd=lanes)
|
||||||
tv.singleton_type = typ
|
tv.singleton_type = typ
|
||||||
return tv
|
return tv
|
||||||
|
|||||||
Reference in New Issue
Block a user