Commit 9989aa81 authored by Frank Bessou's avatar Frank Bessou 🍁
Browse files

feat: move AnyStatement to stmts

parent a2539c46dc95
......@@ -348,7 +348,7 @@ class ETypeResolver:
def solve(
self,
node: rt.AnyScopeNode,
node: "rql.stmts.AnyScopeNode",
constraints: CSPType,
) -> None:
# debug info
......@@ -400,7 +400,7 @@ class ETypeResolver:
types.add(cst.uidtype)
return types
def _init_scope_node(self, node: rt.AnyScopeNode) -> CSPType:
def _init_scope_node(self, node: "rql.stmts.AnyScopeNode") -> CSPType:
pb = CSPProblem()
# set domain for all the variables
for var in node.defined_vars.values():
......
......@@ -155,13 +155,3 @@ class HasOperatorAttribute(Protocol):
kwargs: Optional[Dict] = None,
) -> str:
...
# AnyScopeNode is the Union of all ScopeNode child classes
AnyScopeNode = Union_[
"rql.stmts.Set",
"rql.stmts.Delete",
"rql.stmts.Insert",
"rql.stmts.Select",
"rql.stmts.Select",
]
......@@ -1358,3 +1358,11 @@ AnyStatement = Union_[
Union,
Insert,
]
AnyScopeNode = Union_[
Set,
Delete,
Insert,
Select,
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment