Skip to content

Commit

Permalink
fix: remove LiteralString so works with python3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Feb 4, 2024
1 parent 475cb57 commit e04d367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nbiatoolkit/nbia.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import requests
from requests.exceptions import JSONDecodeError as JSONDecodeError
from typing import Union, LiteralString
from typing import Union
import io
import zipfile

Expand Down Expand Up @@ -78,7 +78,7 @@ def query_api(
) -> Union[list, dict, bytes]:

# query_url = NBIA_ENDPOINTS.BASE_URL.value + endpoint.value
query_url: LiteralString = self._base_url.value + endpoint.value
query_url: str = self._base_url.value + endpoint.value

self._log.debug("Querying API endpoint: %s", query_url)
self._log.debug("Query parameters: %s", params)
Expand Down

0 comments on commit e04d367

Please sign in to comment.