fix(cli): add cast visitor method to highlighter
This commit is contained in:
@@ -173,6 +173,8 @@ class PythonHighlighter(
|
|||||||
|
|
||||||
def visit_set_expr(self, expr: p.SetExpr) -> None: ...
|
def visit_set_expr(self, expr: p.SetExpr) -> None: ...
|
||||||
|
|
||||||
|
def visit_cast_expr(self, expr: p.CastExpr) -> None: ...
|
||||||
|
|
||||||
|
|
||||||
class MidasHighlighter(Highlighter, m.Stmt.Visitor[None], m.Expr.Visitor[None]):
|
class MidasHighlighter(Highlighter, m.Stmt.Visitor[None], m.Expr.Visitor[None]):
|
||||||
EXTRA_CSS_PATH: Optional[Path] = Path(__file__).parent / "hl_midas.css"
|
EXTRA_CSS_PATH: Optional[Path] = Path(__file__).parent / "hl_midas.css"
|
||||||
|
|||||||
Reference in New Issue
Block a user