diff options
author | David P. Sicilia <dpacbach@users.noreply.github.com> | 2020-12-10 19:43:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 16:43:40 -0800 |
commit | a9e91116d2693ed32e092681f2dec10301fd7558 (patch) | |
tree | c34038cb053d112c70968db51b86b7542be48991 /tests/namespace_test | |
parent | 80a745d9b0c3a748be96f1b6ce9a326293ad7304 (diff) | |
download | flatbuffers-a9e91116d2693ed32e092681f2dec10301fd7558.tar.gz flatbuffers-a9e91116d2693ed32e092681f2dec10301fd7558.tar.bz2 flatbuffers-a9e91116d2693ed32e092681f2dec10301fd7558.zip |
[Python] Commit some orphan python genfile diffs. (#6325)
Diffstat (limited to 'tests/namespace_test')
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.py b/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.py index e86ba633..19b87e1d 100644 --- a/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.py +++ b/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.py @@ -10,7 +10,7 @@ class TableInNestedNS(object): __slots__ = ['_tab'] @classmethod - def GetRootAsTableInNestedNS(cls, buf, offset): + def GetRootAsTableInNestedNS(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = TableInNestedNS() x.Init(buf, n + offset) diff --git a/tests/namespace_test/NamespaceA/SecondTableInA.py b/tests/namespace_test/NamespaceA/SecondTableInA.py index 5aaa8edc..ade8fdbe 100644 --- a/tests/namespace_test/NamespaceA/SecondTableInA.py +++ b/tests/namespace_test/NamespaceA/SecondTableInA.py @@ -10,7 +10,7 @@ class SecondTableInA(object): __slots__ = ['_tab'] @classmethod - def GetRootAsSecondTableInA(cls, buf, offset): + def GetRootAsSecondTableInA(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = SecondTableInA() x.Init(buf, n + offset) diff --git a/tests/namespace_test/NamespaceA/TableInFirstNS.py b/tests/namespace_test/NamespaceA/TableInFirstNS.py index 39598f5a..8d917ac4 100644 --- a/tests/namespace_test/NamespaceA/TableInFirstNS.py +++ b/tests/namespace_test/NamespaceA/TableInFirstNS.py @@ -10,7 +10,7 @@ class TableInFirstNS(object): __slots__ = ['_tab'] @classmethod - def GetRootAsTableInFirstNS(cls, buf, offset): + def GetRootAsTableInFirstNS(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = TableInFirstNS() x.Init(buf, n + offset) diff --git a/tests/namespace_test/NamespaceC/TableInC.py b/tests/namespace_test/NamespaceC/TableInC.py index 8f04b52b..1abb5e36 100644 --- a/tests/namespace_test/NamespaceC/TableInC.py +++ b/tests/namespace_test/NamespaceC/TableInC.py @@ -10,7 +10,7 @@ class TableInC(object): __slots__ = ['_tab'] @classmethod - def GetRootAsTableInC(cls, buf, offset): + def GetRootAsTableInC(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = TableInC() x.Init(buf, n + offset) |