Skip to content

Commit 146fc17

Browse files
authored
Typst 0.13 compatibility: Fix 1 more error and 2 warnings (#54)
* Fix another "Cannot add type and string" * Fix warning "Unnecessary import rename to same name" * Fix warning "Unnecessary import rename to same name"
1 parent cac30d0 commit 146fc17

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/assertions.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "./assertions/length.typ" as length
1+
#import "./assertions/length.typ"
22
#import "./assertions/comparative.typ": min, max, eq, neq
33
#import "./assertions/string.typ": *
44

@@ -9,4 +9,4 @@
99
list.contains(it)
1010
},
1111
message: (self, it) => "Unknown " + self.name + " `" + repr(it) + "`",
12-
)
12+
)

src/base-type.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
message: "Expected " + self.types.map(repr).join(
4949
", ",
5050
last: " or ",
51-
) + ". Got " + type(it),
51+
) + ". Got " + str(type(it)),
5252
)
5353
return false
5454
}

src/lib.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#import "assertions-util.typ" as advanced
55
#import "assertions.typ" as assert
66
#import "coercions.typ" as coerce
7-
#import "schemas.typ" as schemas
7+
#import "schemas.typ"
88

99
#let parse(
1010
object,

0 commit comments

Comments
 (0)