Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
c3a4fb73
Commit
c3a4fb73
authored
Sep 23, 2019
by
Stephan Seitz
Browse files
Add property is_integer -> True to IntegerFunctionTwoArgsMixIn
parent
da5cfa52
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/integer_functions.py
View file @
c3a4fb73
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment