Skip to content

Commit 2a7f3e1

Browse files
authored
Improve elemwise docstrings (#1255)
1 parent 5b82a40 commit 2a7f3e1

File tree

2 files changed

+1451
-170
lines changed

2 files changed

+1451
-170
lines changed

Diff for: pytensor/tensor/elemwise.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ def construct(symbol):
16671667
rval = Elemwise(scalar_op, nfunc_spec=(nfunc and (nfunc, nin, nout)))
16681668

16691669
if getattr(symbol, "__doc__"):
1670-
rval.__doc__ = symbol.__doc__ + "\n\n " + rval.__doc__
1670+
rval.__doc__ = symbol.__doc__
16711671

16721672
# for the meaning of this see the ./epydoc script
16731673
# it makes epydoc display rval as if it were a function, not an object

0 commit comments

Comments
 (0)