From 2c7561784ebf57d30413e64f38cdb60b359d2f4d Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Fri, 28 Jul 2023 15:52:06 -0400 Subject: [PATCH] Update api.py --- src/curies/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/curies/api.py b/src/curies/api.py index 33d07be..9952c64 100644 --- a/src/curies/api.py +++ b/src/curies/api.py @@ -628,7 +628,7 @@ def from_jsonld(cls, data: LocationOr[Dict[str, Any]]) -> "Converter": for key, value in _prepare(data)["@context"].items(): if isinstance(value, str): prefix_map[key] = value - elif isinstance(value, dict) and value.get("@prefix") == True: + elif isinstance(value, dict) and value.get("@prefix") is True: prefix_map[key] = value["@id"] return cls.from_prefix_map(prefix_map)