Skip to content

Commit

Permalink
Merge pull request #23 from daniel-dona/master
Browse files Browse the repository at this point in the history
Ignore context on __len__()
  • Loading branch information
Callidon authored Sep 27, 2023
2 parents 7ad58d5 + c4c07f2 commit b58d685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib_hdt/hdt_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def is_safe(self) -> bool:
"""Return True if the HDT store ignores Unicode errors, False otherwise."""
return self._hdt_document.is_safe()

def __len__(self) -> int:
def __len__(self, context) -> int:
"""The number of RDF triples in the HDT store."""
return self._hdt_document.total_triples

Expand Down

0 comments on commit b58d685

Please sign in to comment.