Skip to content

Commit acfd52a

Browse files
committed
checkpoint
1 parent 166dbf5 commit acfd52a

File tree

5 files changed

+3
-29
lines changed

5 files changed

+3
-29
lines changed

rdflib/plugins/sparql/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
"""
42
SPARQL implementation for RDFLib
53

rdflib/plugins/sparql/aggregates.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,7 @@ def update(self, row: FrozenBindings, aggregator: "Aggregator") -> None:
197197
self.value = _eval(self.expr, row)
198198
else:
199199
# self.compare is implemented by Minimum/Maximum
200-
# pytype error: No attribute 'compare' on Extremum
201-
self.value = self.compare(
202-
self.value, _eval(self.expr, row)
203-
) # pytype: disable=attribute-error
200+
self.value = self.compare(self.value, _eval(self.expr, row))
204201
# skip UNDEF or BNode => SPARQLTypeError
205202
except NotBoundError:
206203
pass
@@ -300,8 +297,7 @@ def update(self, row: FrozenBindings) -> None:
300297

301298
for acc in list(self.accumulators.values()):
302299
if acc.use_row(row):
303-
# pytype error: No attribute 'update' on Accumulator
304-
acc.update(row, self) # pytype: disable=attribute-error
300+
acc.update(row, self)
305301

306302
def get_bindings(self) -> Mapping[Variable, Identifier]:
307303
"""calculate and set last values"""

rdflib/plugins/sparql/sparql.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -462,18 +462,3 @@ def __init__(self, prologue: Prologue, algebra: List[CompValue]):
462462
self.prologue = prologue
463463
self.algebra = algebra
464464
self._original_args: Tuple[str, Mapping[str, str], Optional[str]]
465-
466-
467-
__all__ = [
468-
"SPARQLError",
469-
"NotBoundError",
470-
"AlreadyBound",
471-
"SPARQLTypeError",
472-
"Bindings",
473-
"FrozenDict",
474-
"FrozenBindings",
475-
"QueryContext",
476-
"Prologue",
477-
"Query",
478-
"Update",
479-
]

rdflib/term.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
"""
42
This module defines the different types of terms. Terms are the kinds of
53
objects that can appear in a quoted/asserted triple. This includes those

rdflib/void.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
from __future__ import annotations
2-
31
import collections
42

5-
from rdflib.graph import Graph
3+
from rdflib import Graph, Literal, URIRef
64
from rdflib.namespace import RDF, VOID
7-
from rdflib.term import Literal, URIRef
85

96

107
def generateVoID( # noqa: N802

0 commit comments

Comments
 (0)