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
Jonas Plewinski
pystencils
Commits
2afb8023
Commit
2afb8023
authored
Apr 05, 2018
by
Jan Hönig
Committed by
Martin Bauer
Apr 10, 2018
Browse files
pystencils_tests now works with pytest, not unittest
parent
591a4c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
astnodes.py
View file @
2afb8023
...
...
@@ -60,7 +60,7 @@ class Conditional(Node):
false_block: optional block which is run if conditional is false
"""
def
__init__
(
self
,
condition_expr
:
sp
.
Expr
,
true_block
:
'Block'
,
false_block
:
Optional
[
'Block'
]
=
None
)
->
None
:
def
__init__
(
self
,
condition_expr
:
sp
.
Basic
,
true_block
:
Union
[
'Block'
,
'SympyAssignment'
],
false_block
:
Optional
[
'Block'
]
=
None
)
->
None
:
super
(
Conditional
,
self
).
__init__
(
parent
=
None
)
assert
condition_expr
.
is_Boolean
or
condition_expr
.
is_Relational
...
...
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