IIRC I added that type assertion because inference failed without it. But maybe the compiler has improved since then and/or there are other solutions, like using ::Vector{eltype(labels)}. Feel free to try that and make a PR if it works. You’ll also have to change String to eltype(labels) on line 207 too, and of course widen the type of labels in the method signature.
1 Like