diff --git a/test/utils/result.py b/test/utils/result.py index c1bdb604a..218b8649f 100644 --- a/test/utils/result.py +++ b/test/utils/result.py @@ -6,12 +6,13 @@ from collections.abc import Collection, Mapping from dataclasses import dataclass from functools import lru_cache -from typing import Optional, Union - -from typing_extensions import TypeAlias +from typing import TYPE_CHECKING, Optional, Union from rdflib.term import BNode, Identifier, Literal, Variable +if TYPE_CHECKING: + from typing_extensions import TypeAlias + builtin_set: TypeAlias = set logger = logging.getLogger(__name__)