Skip to content

Commit 7297743

Browse files
committed
fix typing on older versions
1 parent 1a2fd36 commit 7297743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_public_endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
import logging
5-
from typing import Literal
5+
from typing import Literal, Union
66
import pytest
77
from urllib.error import HTTPError
88

@@ -478,7 +478,7 @@ def describe_query(endpoint_config):
478478
return endpoint_config["describe_query"]
479479

480480

481-
def query_sparql(endpoint_url, query, return_format, method, only_conneg=False) -> QueryResult | Literal[False]:
481+
def query_sparql(endpoint_url, query, return_format, method, only_conneg=False) -> Union[QueryResult, Literal[False]]:
482482
"""Generic function to make a SPARQL request and return the result"""
483483
sparql = SPARQLWrapper(endpoint_url)
484484
sparql.setQuery(query)

0 commit comments

Comments
 (0)