Skip to content

Commit 0f2d5a9

Browse files
committed
Make linter happy
1 parent 3178293 commit 0f2d5a9

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/pyld/canon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def main(self, dataset: str | dict | Dataset, options) -> str | dict:
7676
# If the output format is not nquads, return a dataset object.
7777
result = Dataset().parse(data=normalized, format='nquads')
7878
return to_legacy_dataset(result)
79-
79+
8080
def _canonicalize(self, dataset: Dataset) -> tuple[str, dict]:
8181
"""
8282
Performs RDF Dataset Canonicalization on the given rdflib.Dataset

lib/pyld/jsonld.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,8 @@ def normalize(self, input_, options):
937937
'application/n-quads' for N-Quads.
938938
[documentLoader(url, options)] the document loader
939939
(default: _default_document_loader).
940-
[outputMap] if True, the function will return a map of blank node
941-
identifiers to their normalized identifiers instead of the
940+
[outputMap] if True, the function will return a map of blank node
941+
identifiers to their normalized identifiers instead of the
942942
normalized dataset (default: False).
943943
944944
:return: the normalized output or the map of blank node identifiers.
@@ -990,7 +990,7 @@ def normalize(self, input_, options):
990990
except UnknownFormatError as cause:
991991
raise JsonLdError(
992992
str(cause),
993-
'jsonld.UnknownFormat',
993+
'jsonld.UnknownFormat',
994994
{'format': cause.format}) from cause
995995

996996

tests/runtests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def runTest(self):
479479
print('ACTUAL: ', result)
480480
raise AssertionError('results differ')
481481
elif not self.is_negative:
482-
# If the result is a dict and the expected value is a string,
482+
# If the result is a dict and the expected value is a string,
483483
# the expected value is probably JSON.
484484
if isinstance(result, dict) and isinstance(expect, str):
485485
expect = json.loads(expect)

0 commit comments

Comments
 (0)