Bugfix __eq__ for numpy data types (#8646)

* [Python] Sync PythonTest.sh flags with generate_code.py

* [Python] Update generated code to latest flatc version for tests

* [Python] Fix test support for numpy newer than 2.0.0

* [Python] Remove unused variable

* [Python] Fix __eq__ for numpy arrays

* [Python] Run clang-format over the entire file
This commit is contained in:
Felix
2025-07-26 19:31:38 +02:00
committed by GitHub
parent 860d645349
commit f32a7dcbd2
5 changed files with 108 additions and 88 deletions

View File

@@ -282,8 +282,8 @@ class MonsterExtraT(object):
self.f1 == other.f1 and \
self.f2 == other.f2 and \
self.f3 == other.f3 and \
self.dvec == other.dvec and \
self.fvec == other.fvec
np.array_equal(self.dvec, other.dvec) and \
np.array_equal(self.fvec, other.fvec)
# MonsterExtraT
def _UnPack(self, monsterExtra):