Python - Pretty json saving defaults to true (#793)

* Python - Pretty json saving defaults to true

* Update changelog
This commit is contained in:
Anthony MOI
2021-09-02 14:43:54 +02:00
committed by GitHub
parent 23cf8c69ae
commit b8b584d4e5
4 changed files with 11 additions and 7 deletions

View File

@ -601,10 +601,10 @@ impl PyTokenizer {
/// path (:obj:`str`):
/// A path to a file in which to save the serialized tokenizer.
///
/// pretty (:obj:`bool`, defaults to :obj:`False`):
/// pretty (:obj:`bool`, defaults to :obj:`True`):
/// Whether the JSON file should be pretty formatted.
#[args(pretty = false)]
#[text_signature = "(self, pretty=False)"]
#[args(pretty = true)]
#[text_signature = "(self, pretty=True)"]
fn save(&self, path: &str, pretty: bool) -> PyResult<()> {
ToPyResult(self.tokenizer.save(path, pretty)).into()
}