EOX GitLab Instance

Commit 00c2fda3 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Fixing typing

parent 1148d8e4
Pipeline #19411 passed with stages
in 2 minutes and 3 seconds
import json
import logging
from typing import Iterator, Optional, Union
from typing import Iterator, Optional
from redis import Redis
......@@ -18,7 +18,7 @@ def stringify(
result: Iterator[dict],
mode: str = "item",
extract_property: Optional[str] = None,
) -> Iterator[Union[dict, str]]:
) -> Iterator[str]:
if mode == "item":
yield from (json.dumps(item, default=str) for item in result)
elif mode == "property":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment