Skip to content

Commit

Permalink
Put the TypeAlias import behind the TYPE_CHECKING gate
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysommer committed Nov 1, 2024
1 parent 9dbabf2 commit b6a7794
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/utils/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit b6a7794

Please sign in to comment.