summaryrefslogtreecommitdiff
path: root/test/jsonld/test_context.py
diff options
context:
space:
mode:
authorIwan Aucamp <aucampia@gmail.com>2023-04-12 22:10:43 +0200
committerGitHub <noreply@github.com>2023-04-12 22:10:43 +0200
commit7df77cd3fa0381ae2b309981230eaa0d42e90b79 (patch)
tree0d02cc4f882e68ae7b3341b805c2338691a6853e /test/jsonld/test_context.py
parent81d13d432b7e49b557b5de11691bdeaed31a9b06 (diff)
downloadrdflib-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/test_context.py')
-rw-r--r--test/jsonld/test_context.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/jsonld/test_context.py b/test/jsonld/test_context.py
index 034936d2..c26fcb0c 100644
--- a/test/jsonld/test_context.py
+++ b/test/jsonld/test_context.py
@@ -134,7 +134,8 @@ def test_prefix_like_vocab():
# Mock external sources loading
SOURCES: Dict[str, Dict[str, Any]] = {}
-_source_to_json = context.source_to_json
+# type error: Module "rdflib.plugins.shared.jsonld.context" does not explicitly export attribute "source_to_json"
+_source_to_json = context.source_to_json # type: ignore[attr-defined]
def _mock_source_loader(f):