fix: minor fixes

This commit is contained in:
2026-06-29 22:41:47 +02:00
parent 9db56adf56
commit bccc96e4d0
2 changed files with 2 additions and 1 deletions

View File

@@ -1233,7 +1233,7 @@ class PythonTyper(
node: ast.Expression = ast.parse(value, mode="eval") node: ast.Expression = ast.parse(value, mode="eval")
return parser._parse_type(node.body) return parser._parse_type(node.body)
case p.VariableExpr(name=name): case p.VariableExpr(name=name):
return p.BaseType(location=location, base=name, param=None) return p.BaseType(location=location, base=name, args=())
case _: case _:
raise NotImplementedError raise NotImplementedError

View File

@@ -30,6 +30,7 @@ from midas.ast.python import (
Stmt, Stmt,
SubscriptExpr, SubscriptExpr,
TernaryExpr, TernaryExpr,
TupleExpr,
TypeAssign, TypeAssign,
UnaryExpr, UnaryExpr,
VariableExpr, VariableExpr,