From e83a552b37ddcb1b176ef8847b4f3d29a3b0b826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Novotn=C3=BD?= Date: Mon, 29 Apr 2019 05:52:17 +0200 Subject: [PATCH] Use `or` instead of `{...}` for documenting a union of types --- gensim/similarities/termsim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gensim/similarities/termsim.py b/gensim/similarities/termsim.py index ff961431e1..bc7bd836f0 100644 --- a/gensim/similarities/termsim.py +++ b/gensim/similarities/termsim.py @@ -168,7 +168,7 @@ class SparseTermSimilarityMatrix(SaveLoad): strict column diagonal dominance. Positive definiteness is a necessary precondition if you later wish to derive a change-of-basis matrix from the term similarity matrix using Cholesky factorization. - nonzero_limit : {int, None}, optional + nonzero_limit : int or None, optional The maximum number of non-zero elements outside the diagonal in a single column of the sparse term similarity matrix. If None, then no limit will be imposed. dtype : numpy.dtype, optional