Skip to content

Commit eacb176

Browse files
committed
update
1 parent e8bdd71 commit eacb176

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

mypyc/test-data/run-bench.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ class Node(Tree):
9898

9999
@trait
100100
class TreeVisitor(Generic[T]):
101-
def visit_leaf(self, x: Leaf) -> T: return cast(T, None)
102-
def visit_node(self, x: Node) -> T: return cast(T, None)
101+
def visit_leaf(self, x: Leaf, /) -> T: return cast(T, None)
102+
def visit_node(self, x: Node, /) -> T: return cast(T, None)
103103

104104
class SumVisitor(TreeVisitor[int]):
105105
def sum(self, x: Tree) -> int:

mypyc/test-data/run-mypy-sim.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,21 @@ T = TypeVar('T')
8686
@trait
8787
class ExpressionVisitor(Generic[T]):
8888
@abstractmethod
89-
def visit_lambda_expr(self, o: 'nodes.LambdaExpr') -> T:
89+
def visit_lambda_expr(self, o: 'nodes.LambdaExpr', /) -> T:
9090
return cast(T, None)
9191

9292
@trait
9393
class StatementVisitor(Generic[T]):
9494
@abstractmethod
95-
def visit_block(self, o: 'nodes.Block') -> T:
95+
def visit_block(self, o: 'nodes.Block', /) -> T:
9696
return cast(T, None)
9797

9898
@abstractmethod
99-
def visit_func_def(self, o: 'nodes.FuncDef') -> T:
99+
def visit_func_def(self, o: 'nodes.FuncDef', /) -> T:
100100
return cast(T, None)
101101

102102
@abstractmethod
103-
def visit_expr_stmt(self, o: 'nodes.ExprStmt') -> T:
103+
def visit_expr_stmt(self, o: 'nodes.ExprStmt', /) -> T:
104104
return cast(T, None)
105105

106106
@trait

0 commit comments

Comments
 (0)