Skip to content

Commit 1689e8d

Browse files
committed
add python 3.13 to github action tests, remove unused imports
1 parent 539c723 commit 1689e8d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
max-parallel: 1
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}

SPARQLWrapper/sparql_dataframe.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Query a SPARQL endpoint and return results as a Pandas dataframe.
33
"""
44
import io
5-
from typing import TYPE_CHECKING, Any, Dict, List, Union
5+
from typing import TYPE_CHECKING, Dict, List, Union
66

77
from SPARQLWrapper.SmartWrapper import Bindings, SPARQLWrapper2, Value
88
from SPARQLWrapper.Wrapper import CSV, SELECT, SPARQLWrapper
@@ -39,8 +39,6 @@ def get_sparql_typed_dict(
3939
endpoint: str, query: Union[str, bytes]
4040
) -> List[Dict[str, Value]]:
4141
"""modified from: https://github.com/lawlesst/sparql-dataframe"""
42-
# pandas inside to avoid requiring it
43-
import pandas as pd
4442
# rdflib in here because there is some meta stuff in the setup.py and Travis fails because rdflib is installed later
4543
import rdflib.term
4644
sparql = SPARQLWrapper2(endpoint)

0 commit comments

Comments
 (0)