Skip to content

Commit 2ffdd3a

Browse files
konstantinschulzthomaskrause
authored andcommitted
add type hint
1 parent 9a4eaa8 commit 2ffdd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphannis/cs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def subgraph(self, corpus_name: str, node_ids, ctx_left=0, ctx_right=0, segmenta
270270

271271
return G
272272

273-
def subcorpus_graph(self, corpus_name: str, document_ids) -> nx.MultiDiGraph:
273+
def subcorpus_graph(self, corpus_name: str, document_ids: list) -> nx.MultiDiGraph:
274274
""" Return the copy of a subgraph which includes all nodes that belong to any of the given list of sub-corpus/document identifiers.
275275
:param corpus_name: The name of the corpus for which the subgraph should be generated from.
276276
:param document_ids: A list of sub-corpus/document identifiers describing the subgraph.

0 commit comments

Comments
 (0)