diff options
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) |