mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 16:49:27 +00:00
Python - Update pyo3 version
* Use __new__ instead of static method as model constructors
This commit is contained in:
@ -40,7 +40,7 @@ impl PySequenceProtocol for Encoding {
|
||||
impl Encoding {
|
||||
#[staticmethod]
|
||||
#[args(growing_offsets = true)]
|
||||
fn merge(encodings: Vec<&Encoding>, growing_offsets: bool) -> Encoding {
|
||||
fn merge(encodings: Vec<PyRef<Encoding>>, growing_offsets: bool) -> Encoding {
|
||||
Encoding::new(tk::tokenizer::Encoding::merge(
|
||||
encodings
|
||||
.into_iter()
|
||||
|
Reference in New Issue
Block a user