From c3a4fb73647d84b02a4d4942f2a5b883d574cf8e Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Mon, 23 Sep 2019 09:23:57 +0200
Subject: [PATCH] Add property is_integer -> True to
 IntegerFunctionTwoArgsMixIn

---
 pystencils/integer_functions.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pystencils/integer_functions.py b/pystencils/integer_functions.py
index b54bbaab2..fa5a4d739 100644
--- a/pystencils/integer_functions.py
+++ b/pystencils/integer_functions.py
@@ -25,6 +25,10 @@ class IntegerFunctionTwoArgsMixIn(sp.Function):
                 raise ValueError("Integer functions can only be constructed with typed expressions")
         return super().__new__(cls, *args)
 
+    @property
+    def is_integer(self):
+        return True
+
 
 # noinspection PyPep8Naming
 class bitwise_xor(IntegerFunctionTwoArgsMixIn):
-- 
GitLab