mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 14:46:26 +00:00
[BREAKING CHANGE] Python: handle bool table fields properly. (#4736)
* Python: handle bool table fields properly. * Small refactor. * Use snake_case instead of camelCase. Use auto.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
f11ffedb2b
commit
a9640bd9e1
@@ -201,8 +201,8 @@ class Monster(object):
|
||||
def Testbool(self):
|
||||
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(34))
|
||||
if o != 0:
|
||||
return self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)
|
||||
return 0
|
||||
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
||||
return False
|
||||
|
||||
# Monster
|
||||
def Testhashs32Fnv1(self):
|
||||
|
||||
Reference in New Issue
Block a user