From ea600b2a04f0fc7c34108fb51271a6bb9fb20127 Mon Sep 17 00:00:00 2001 From: Iwan Aucamp Date: Tue, 28 Mar 2023 18:38:57 +0000 Subject: [PATCH] restore `rdflib.query.Processor` to its previous state `rdflib.query.Processor` is an interface for plugins, and changes to it that broaden it will affect existing plugins that only support the narrower interface. --- rdflib/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdflib/query.py b/rdflib/query.py index ada117928..155c490e6 100644 --- a/rdflib/query.py +++ b/rdflib/query.py @@ -57,8 +57,8 @@ def __init__(self, graph: "Graph"): def query( # type: ignore[empty-body] self, strOrQuery: Union[str, "Query"], # noqa: N803 - initBindings: Optional[Mapping["str", "Identifier"]] = {}, # noqa: N803 - initNs: Optional[Mapping[str, Any]] = {}, # noqa: N803 + initBindings: Mapping["str", "Identifier"] = {}, # noqa: N803 + initNs: Mapping[str, Any] = {}, # noqa: N803 DEBUG: bool = False, ) -> Mapping[str, Any]: pass