From ff8a79b93785d7c01cd0cb3914c401177d46c453 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Tue, 16 Apr 2024 15:54:41 +0200 Subject: [PATCH] Fixes ignorance towards type checking bloat --- _delb/xpath/ast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_delb/xpath/ast.py b/_delb/xpath/ast.py index e2dc20b..28bbfb7 100644 --- a/_delb/xpath/ast.py +++ b/_delb/xpath/ast.py @@ -21,12 +21,11 @@ from collections.abc import Callable, Iterable, Iterator, Sequence from functools import wraps from textwrap import indent -from typing import TYPE_CHECKING, cast, Any, NamedTuple, Optional +from typing import TYPE_CHECKING, cast, Any, NamedTuple, Optional from _delb.exceptions import InvalidCodePath, XPathEvaluationError, XPathParsingError from _delb.plugins import plugin_manager as _plugin_manager -from _delb.typing import Final from _delb.utils import _is_node_of_type # REMOVE when support for Python 3.7 is dropped @@ -39,6 +38,7 @@ if TYPE_CHECKING: from _delb.names import Namespaces from _delb.nodes import NodeBase, ProcessingInstructionNode, TagNode + from _delb.typing import Final xpath_functions: Final = _plugin_manager.xpath_functions