Skip to content

Commit 6b251aa

Browse files
authored
Bugfix/new decode flag (#8634)
* Add docs for new python-decode-obj-api-strings flag * Fix generate_code by adding missing s to flag
1 parent 6fe8afb commit 6b251aa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/source/flatc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ list of `FILES...`.
259259

260260
- `--python-typing` : Generate Python type annotations
261261

262+
- `--python-decode-obj-api-strings` : Decode bytes automaticaly with utf-8
263+
262264
Additional gRPC options:
263265

264266
- `--grpc-filename-suffix`: `[C++]` An optional suffix for the generated

scripts/generate_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def glob(path, pattern):
104104
KOTLIN_OPTS = ["--kotlin"]
105105
PHP_OPTS = ["--php"]
106106
DART_OPTS = ["--dart"]
107-
PYTHON_OPTS = ["--python", "--python-typing", "--python-decode-obj-api-string"]
107+
PYTHON_OPTS = ["--python", "--python-typing", "--python-decode-obj-api-strings"]
108108
BINARY_OPTS = ["-b", "--schema", "--bfbs-comments", "--bfbs-builtins"]
109109
PROTO_OPTS = ["--proto"]
110110

0 commit comments

Comments
 (0)