Skip to content

Commit

Permalink
[fix] Explicitly convert type to string
Browse files Browse the repository at this point in the history
This is required from the next Typst version on
  • Loading branch information
Mc-Zen committed Dec 28, 2024
1 parent 0d1af6d commit 1352b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/process-args.typ
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
bottom: padding.at("bottom", default: y),
)
}
assert(false, message: "Unsupported type \"" + type + "\" as argument for padding")
assert(false, message: "Unsupported type \"" + str(type) + "\" as argument for padding")
}


Expand Down
2 changes: 1 addition & 1 deletion src/quantum-circuit.typ
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@

if offset == auto { return (dx - width / 2, dy - height / 2) }

assert(type(offset) == dictionary, message: "Unexpected type `" + type(offset) + "` for parameter `offset`")
assert(type(offset) == dictionary, message: "Unexpected type `" + str(type(offset)) + "` for parameter `offset`")

let offset-x = offset.at("x", default: auto)
let offset-y = offset.at("y", default: auto)
Expand Down

0 comments on commit 1352b07

Please sign in to comment.