diff options
| author | Iwan Aucamp <aucampia@gmail.com> | 2023-04-12 22:10:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 22:10:43 +0200 |
| commit | 7df77cd3fa0381ae2b309981230eaa0d42e90b79 (patch) | |
| tree | 0d02cc4f882e68ae7b3341b805c2338691a6853e /test/jsonld/runner.py | |
| parent | 81d13d432b7e49b557b5de11691bdeaed31a9b06 (diff) | |
| download | rdflib-7df77cd3fa0381ae2b309981230eaa0d42e90b79.tar.gz | |
fix: correct imports and `__all__` (#2340)
Disable
[`implicit_reexport`](https://mypy.readthedocs.io/en/stable/config_file.html#confval-implicit_reexport)
and eliminate all errors reported by mypy after this.
This helps ensure that import statements import from the right module and that
the `__all__` variable is correct.
Diffstat (limited to 'test/jsonld/runner.py')
| -rw-r--r-- | test/jsonld/runner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/jsonld/runner.py b/test/jsonld/runner.py index 13afc085..77a80ed4 100644 --- a/test/jsonld/runner.py +++ b/test/jsonld/runner.py @@ -1,13 +1,13 @@ # -*- coding: UTF-8 -*- import json -from rdflib import ConjunctiveGraph +from rdflib import BNode, ConjunctiveGraph from rdflib.compare import isomorphic from rdflib.parser import InputSource from rdflib.plugins.parsers.jsonld import JsonLDParser, to_rdf # monkey-patch N-Quads parser via it's underlying W3CNTriplesParser to keep source bnode id:s .. -from rdflib.plugins.parsers.ntriples import W3CNTriplesParser, bNode, r_nodeid +from rdflib.plugins.parsers.ntriples import W3CNTriplesParser, r_nodeid from rdflib.plugins.serializers.jsonld import from_rdf from rdflib.plugins.shared.jsonld.keys import CONTEXT, GRAPH @@ -15,7 +15,7 @@ from rdflib.plugins.shared.jsonld.keys import CONTEXT, GRAPH def _preserving_nodeid(self, bnode_context=None): if not self.peek("_"): return False - return bNode(self.eat(r_nodeid).group(1)) + return BNode(self.eat(r_nodeid).group(1)) DEFAULT_PARSER_VERSION = 1.0 |
