From 6b251aa1cfa997b51c68c909a0f6b230b08cd575 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 5 Jul 2025 01:46:28 +0200 Subject: [PATCH] Bugfix/new decode flag (#8634) * Add docs for new python-decode-obj-api-strings flag * Fix generate_code by adding missing s to flag --- docs/source/flatc.md | 2 ++ scripts/generate_code.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/flatc.md b/docs/source/flatc.md index 9cf22a238..5ef6b4e33 100644 --- a/docs/source/flatc.md +++ b/docs/source/flatc.md @@ -259,6 +259,8 @@ list of `FILES...`. - `--python-typing` : Generate Python type annotations +- `--python-decode-obj-api-strings` : Decode bytes automaticaly with utf-8 + Additional gRPC options: - `--grpc-filename-suffix`: `[C++]` An optional suffix for the generated diff --git a/scripts/generate_code.py b/scripts/generate_code.py index d558fe1f5..c34e0ba57 100755 --- a/scripts/generate_code.py +++ b/scripts/generate_code.py @@ -104,7 +104,7 @@ JAVA_OPTS = ["--java"] KOTLIN_OPTS = ["--kotlin"] PHP_OPTS = ["--php"] DART_OPTS = ["--dart"] -PYTHON_OPTS = ["--python", "--python-typing", "--python-decode-obj-api-string"] +PYTHON_OPTS = ["--python", "--python-typing", "--python-decode-obj-api-strings"] BINARY_OPTS = ["-b", "--schema", "--bfbs-comments", "--bfbs-builtins"] PROTO_OPTS = ["--proto"]