EOX GitLab Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
View Server 2
harvester
Commits
00c2fda3
Commit
00c2fda3
authored
Dec 06, 2021
by
Fabian Schindler
Browse files
Fixing typing
parent
1148d8e4
Pipeline
#19411
passed with stages
in 2 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
harvester/harvester.py
View file @
00c2fda3
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"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment