Change type repr to short name (#5788)

This commit is contained in:
Laurenz 2025-01-31 10:56:49 +01:00 committed by GitHub
parent 3eb6e87af1
commit a1f263862c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ impl Repr for Type {
} else if *self == Type::of::<NoneValue>() { } else if *self == Type::of::<NoneValue>() {
"type(none)" "type(none)"
} else { } else {
self.long_name() self.short_name()
} }
.into() .into()
} }

View File

@ -37,8 +37,8 @@
#t(() => none, `(..) => ..`) #t(() => none, `(..) => ..`)
// Types. // Types.
#t(int, `integer`) #t(int, `int`)
#t(type("hi"), `string`) #t(type("hi"), `str`)
#t(type((a: 1)), `dictionary`) #t(type((a: 1)), `dictionary`)
// Constants. // Constants.