Skip to content

Commit

Permalink
chore: update type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondchuc committed Dec 14, 2024
1 parent da4acf6 commit de6a8b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdflib/term.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ class _Deskolemizer:
__slots__ = "_skolems"

def __init__(self) -> None:
self._skolems: Dict[str, BNode] = {}
self._skolems: dict[str, BNode] = {}

def __call__(self, uri: URIRef) -> Union[URIRef, BNode]:
def __call__(self, uri: URIRef) -> URIRef | BNode:
parsed_uri = urlsplit(uri)
if parsed_uri.query != "" or parsed_uri.fragment != "":
# Behaviour is undefined for skolem URIs with query or fragment, so just return the URI
Expand Down

0 comments on commit de6a8b2

Please sign in to comment.