py2dag 0.1.10__tar.gz → 0.1.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: py2dag
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Convert Python function plans to DAG (JSON, pseudo, optional SVG).
5
5
  License: MIT
6
6
  Author: rvergis
@@ -171,9 +171,11 @@ def parse(source: str, function_name: Optional[str] = None) -> Dict[str, Any]:
171
171
  returned_var = const_id
172
172
  else:
173
173
  raise DSLParseError("return must return a variable name or literal")
174
- elif isinstance(stmt, (ast.For, ast.AsyncFor, ast.While)):
174
+ elif isinstance(stmt, (ast.For, ast.AsyncFor, ast.While, ast.If)):
175
175
  # Ignore control flow blocks; only top-level linear statements are modeled
176
176
  continue
177
+ elif isinstance(stmt, (ast.Pass,)):
178
+ continue
177
179
  else:
178
180
  raise DSLParseError("Only assignments, expression calls, and a final return are allowed in function body")
179
181
 
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "py2dag"
7
- version = "0.1.10"
7
+ version = "0.1.11"
8
8
  description = "Convert Python function plans to DAG (JSON, pseudo, optional SVG)."
9
9
  authors = ["rvergis"]
10
10
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes