From 1507c5c9d766a98972438063a3e7d93a147d2669 Mon Sep 17 00:00:00 2001 From: Jann Stute Date: Wed, 27 Nov 2024 22:07:00 +0100 Subject: [PATCH] make mypy happy --- tagstudio/src/core/query_lang/ast.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tagstudio/src/core/query_lang/ast.py b/tagstudio/src/core/query_lang/ast.py index 1eb9cdda..d491c990 100644 --- a/tagstudio/src/core/query_lang/ast.py +++ b/tagstudio/src/core/query_lang/ast.py @@ -91,17 +91,17 @@ class BaseVisitor(ABC, Generic[T]): }[type(node)](node) @abstractmethod - def visit_ANDList(self, node: ANDList) -> T: # noqa: N802 + def visit_ANDList(self, node: AST) -> T: # noqa: N802 raise NotImplementedError() @abstractmethod - def visit_ORList(self, node: ORList) -> T: # noqa: N802 + def visit_ORList(self, node: AST) -> T: # noqa: N802 raise NotImplementedError() @abstractmethod - def visit_Constraint(self, node: Constraint) -> T: # noqa: N802 + def visit_Constraint(self, node: AST) -> T: # noqa: N802 raise NotImplementedError() @abstractmethod - def visit_Property(self, node: Property) -> T: # noqa: N802 + def visit_Property(self, node: AST) -> T: # noqa: N802 raise NotImplementedError()