We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b69e1ff commit d587e33Copy full SHA for d587e33
lambda_calculus/visitors/walking.py
@@ -4,7 +4,7 @@
4
5
from __future__ import annotations
6
from collections.abc import Iterator
7
-from typing import TypeVar
+from typing import TypeVar, final
8
from .. import terms
9
from . import BottomUpVisitor
10
@@ -15,6 +15,7 @@
15
V = TypeVar("V")
16
17
18
+@final
19
class DepthFirstVisitor(BottomUpVisitor[Iterator["terms.Term[V]"], V]):
20
"""
21
Visitor yielding subterms depth first
@@ -24,6 +25,8 @@ class DepthFirstVisitor(BottomUpVisitor[Iterator["terms.Term[V]"], V]):
24
25
V: represents the type of variables used in terms
26
27
28
+ __slots__ = ()
29
+
30
def visit_variable(self, variable: terms.Variable[V]) -> Iterator[terms.Term[V]]:
31
32
Visit a Variable term.
0 commit comments