Skip to content

Commit d46394e

Browse files
committed
Correct type of value
1 parent 0284b01 commit d46394e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/hermes/model/types/pyld_util.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ class JsonLdProcessor(jsonld.JsonLdProcessor):
103103
def expand_iri(self, active_ctx: t.Any, short_iri: str, vocab: bool = True) -> str:
104104
return self._expand_iri(active_ctx, short_iri, vocab=vocab)
105105

106-
def compact_iri(self, active_ctx: t.Any, long_iri: str, vocab: bool = True, value: list = None) -> str:
107-
# print(active_ctx, long_iri, vocab)
106+
def compact_iri(self, active_ctx: t.Any, long_iri: str, vocab: bool = True, value: dict = None) -> str:
108107
for mapping in active_ctx["mappings"].values():
109-
if ("@container" in mapping and long_iri):
108+
if "@container" in mapping and long_iri:
110109
value = {x: "none" for x in mapping["@container"]}
111110
return self._compact_iri(active_ctx, long_iri, vocab=vocab, value=value)
112111

0 commit comments

Comments
 (0)