Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jul 28, 2023
1 parent 830124e commit 2c75617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/curies/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2c75617

Please sign in to comment.