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 | |
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')
-rw-r--r-- | tests/MyGame/Example/ArrayTable.py | 2 | ||||
-rw-r--r-- | tests/MyGame/Example/Monster.py | 2 | ||||
-rw-r--r-- | tests/MyGame/Example/Referrable.py | 2 | ||||
-rw-r--r-- | tests/MyGame/Example/Stat.py | 2 | ||||
-rw-r--r-- | tests/MyGame/Example/TestSimpleTableWithEnum.py | 2 | ||||
-rw-r--r-- | tests/MyGame/Example/TypeAliases.py | 2 | ||||
-rw-r--r-- | tests/MyGame/Example2/Monster.py | 2 | ||||
-rw-r--r-- | tests/MyGame/InParentNamespace.py | 2 | ||||
-rw-r--r-- | tests/MyGame/MonsterExtra.py | 2 | ||||
-rw-r--r-- | tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.py | 2 | ||||
-rw-r--r-- | tests/namespace_test/NamespaceA/SecondTableInA.py | 2 | ||||
-rw-r--r-- | tests/namespace_test/NamespaceA/TableInFirstNS.py | 2 | ||||
-rw-r--r-- | tests/namespace_test/NamespaceC/TableInC.py | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/tests/MyGame/Example/ArrayTable.py b/tests/MyGame/Example/ArrayTable.py index 83905e60..af66ac42 100644 --- a/tests/MyGame/Example/ArrayTable.py +++ b/tests/MyGame/Example/ArrayTable.py @@ -10,7 +10,7 @@ class ArrayTable(object): __slots__ = ['_tab'] @classmethod - def GetRootAsArrayTable(cls, buf, offset): + def GetRootAsArrayTable(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = ArrayTable() x.Init(buf, n + offset) diff --git a/tests/MyGame/Example/Monster.py b/tests/MyGame/Example/Monster.py index 67f6e1b2..0d2e966d 100644 --- a/tests/MyGame/Example/Monster.py +++ b/tests/MyGame/Example/Monster.py @@ -11,7 +11,7 @@ class Monster(object): __slots__ = ['_tab'] @classmethod - def GetRootAsMonster(cls, buf, offset): + def GetRootAsMonster(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Monster() x.Init(buf, n + offset) diff --git a/tests/MyGame/Example/Referrable.py b/tests/MyGame/Example/Referrable.py index 44bf50f4..80e67f25 100644 --- a/tests/MyGame/Example/Referrable.py +++ b/tests/MyGame/Example/Referrable.py @@ -10,7 +10,7 @@ class Referrable(object): __slots__ = ['_tab'] @classmethod - def GetRootAsReferrable(cls, buf, offset): + def GetRootAsReferrable(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Referrable() x.Init(buf, n + offset) diff --git a/tests/MyGame/Example/Stat.py b/tests/MyGame/Example/Stat.py index 7d3362fa..508beb1b 100644 --- a/tests/MyGame/Example/Stat.py +++ b/tests/MyGame/Example/Stat.py @@ -10,7 +10,7 @@ class Stat(object): __slots__ = ['_tab'] @classmethod - def GetRootAsStat(cls, buf, offset): + def GetRootAsStat(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Stat() x.Init(buf, n + offset) diff --git a/tests/MyGame/Example/TestSimpleTableWithEnum.py b/tests/MyGame/Example/TestSimpleTableWithEnum.py index d91947a3..639b74e1 100644 --- a/tests/MyGame/Example/TestSimpleTableWithEnum.py +++ b/tests/MyGame/Example/TestSimpleTableWithEnum.py @@ -10,7 +10,7 @@ class TestSimpleTableWithEnum(object): __slots__ = ['_tab'] @classmethod - def GetRootAsTestSimpleTableWithEnum(cls, buf, offset): + def GetRootAsTestSimpleTableWithEnum(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = TestSimpleTableWithEnum() x.Init(buf, n + offset) diff --git a/tests/MyGame/Example/TypeAliases.py b/tests/MyGame/Example/TypeAliases.py index 0567212e..239b2749 100644 --- a/tests/MyGame/Example/TypeAliases.py +++ b/tests/MyGame/Example/TypeAliases.py @@ -10,7 +10,7 @@ class TypeAliases(object): __slots__ = ['_tab'] @classmethod - def GetRootAsTypeAliases(cls, buf, offset): + def GetRootAsTypeAliases(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = TypeAliases() x.Init(buf, n + offset) diff --git a/tests/MyGame/Example2/Monster.py b/tests/MyGame/Example2/Monster.py index 538b0354..718f1e4b 100644 --- a/tests/MyGame/Example2/Monster.py +++ b/tests/MyGame/Example2/Monster.py @@ -10,7 +10,7 @@ class Monster(object): __slots__ = ['_tab'] @classmethod - def GetRootAsMonster(cls, buf, offset): + def GetRootAsMonster(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Monster() x.Init(buf, n + offset) diff --git a/tests/MyGame/InParentNamespace.py b/tests/MyGame/InParentNamespace.py index e78ea6a1..117f651e 100644 --- a/tests/MyGame/InParentNamespace.py +++ b/tests/MyGame/InParentNamespace.py @@ -10,7 +10,7 @@ class InParentNamespace(object): __slots__ = ['_tab'] @classmethod - def GetRootAsInParentNamespace(cls, buf, offset): + def GetRootAsInParentNamespace(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = InParentNamespace() x.Init(buf, n + offset) diff --git a/tests/MyGame/MonsterExtra.py b/tests/MyGame/MonsterExtra.py index eafea7cf..48ab461e 100644 --- a/tests/MyGame/MonsterExtra.py +++ b/tests/MyGame/MonsterExtra.py @@ -10,7 +10,7 @@ class MonsterExtra(object): __slots__ = ['_tab'] @classmethod - def GetRootAsMonsterExtra(cls, buf, offset): + def GetRootAsMonsterExtra(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = MonsterExtra() x.Init(buf, n + offset) 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) |