We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176ac93 commit 139eb47Copy full SHA for 139eb47
src/inline/plugin.py
@@ -141,7 +141,6 @@ def inlinetest_namespace() -> Dict[str, Any]:
141
class InlineTest:
142
def __init__(self):
143
self.assume_stmts = []
144
- self.assume_node: ast.If = None
145
self.check_stmts = []
146
self.given_stmts = []
147
self.previous_stmts = []
@@ -180,7 +179,7 @@ def to_test(self):
180
179
return "\n".join(ExtractInlineTest.node_to_source_code(assume_node))
181
182
else:
183
- if self.assume_stmts == []:
+ if self.assume_stmts is None or self.assume_stmts == []:
184
return "\n".join(
185
[ExtractInlineTest.node_to_source_code(n) for n in self.given_stmts]
186
+ [
0 commit comments