From ce8892585fa56ec93ec3a55f894fdc06d6553b85 Mon Sep 17 00:00:00 2001 From: Martin Schorfmann Date: Fri, 12 Apr 2024 15:52:39 +0200 Subject: [PATCH] Correct documented return type of Vocab.to_bytes in API docs --- website/docs/api/vocab.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/vocab.mdx b/website/docs/api/vocab.mdx index 57618397d..2466f561b 100644 --- a/website/docs/api/vocab.mdx +++ b/website/docs/api/vocab.mdx @@ -283,7 +283,7 @@ Serialize the current state to a binary string. | -------------- | ------------------------------------------------------------------------------------------- | | _keyword-only_ | | | `exclude` | String names of [serialization fields](#serialization-fields) to exclude. ~~Iterable[str]~~ | -| **RETURNS** | The serialized form of the `Vocab` object. ~~Vocab~~ | +| **RETURNS** | The serialized form of the `Vocab` object. ~~bytes~~ | ## Vocab.from_bytes {id="from_bytes",tag="method"}