make mypy happy...

This commit is contained in:
Philip Eisenlohr 2022-02-23 09:12:55 -05:00
parent 5882a8560c
commit 08a96f64f5
1 changed files with 5 additions and 2 deletions

View File

@ -59,10 +59,13 @@ class VTK:
Parameters
----------
other : damask.VTK
VTK to compare self against.
VTK to check for equality.
"""
return self.as_ASCII() == other.as_ASCII() if isinstance(other, VTK) else NotImplemented
if not isinstance(other, VTK):
return NotImplemented
return self.as_ASCII() == other.as_ASCII()
def copy(self):