Skip to content

Commit d86fa69

Browse files
committed
CI fix: type comparison in Python
No idea why this check is triggered by this PR
1 parent e7ddd89 commit d86fa69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binding/python/openpmd_api/pipe/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def __copy(self, src, dest, current_path="/data/"):
234234
Copies data from src to dest. May represent any point in the openPMD
235235
hierarchy, but src and dest must both represent the same layer.
236236
"""
237-
if (type(src) != type(dest)
237+
if (type(src) is type(dest)
238238
and not isinstance(src, io.IndexedIteration)
239239
and not isinstance(dest, io.Iteration)):
240240
raise RuntimeError(

0 commit comments

Comments
 (0)