Skip to content

Commit

Permalink
Use or instead of {...} for documenting a union of types
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Apr 29, 2019
1 parent da67b90 commit 7d01743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/models/keyedvectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def most_similar(self, positive=None, negative=None, topn=10, restrict_vocab=Non
Returns
-------
{list of (str, float), numpy.array}
list of (str, float) or numpy.array
Sequence of (word, similarity) when `topn` is int. When `topn` is None, then
similarities for all words are returned.
Expand Down

0 comments on commit 7d01743

Please sign in to comment.