Skip to content
Snippets Groups Projects
Commit d1fbfddc authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix is_integer

parent ef41f461
1 merge request!400Extensions and fixes to the type system
Pipeline #67462 passed with stages
in 2 minutes and 52 seconds
......@@ -278,7 +278,9 @@ class CastFunc(sp.Function):
@property
def is_integer(self):
if isinstance(self.dtype, PsNumericType) or self.dtype == DynamicType.INDEX_TYPE:
if self.dtype == DynamicType.INDEX_TYPE:
return True
elif isinstance(self.dtype, PsNumericType):
return self.dtype.is_int() or super().is_integer
else:
return super().is_integer
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment