|
function Base.Docs.doc(o::PyObject) |
|
if hasproperty(o, "__doc__") |
|
d = o."__doc__" |
|
if !(d ≛ pynothing[]) |
|
return Base.Docs.Text(convert(AbstractString, d)) |
|
end |
|
end |
|
return Base.Docs.Text("Python object (no docstring found)") |
|
end |
Docstring for python objects have the type
Base.Docs.Text{String}, which has been deprecated. Since python documentation is usually in RST format, maybe we could create a type for that?
This has caused trouble in Pluto when displaying documentation in the help panel.
PyCall.jl/src/PyCall.jl
Lines 260 to 268 in e3e3008
Docstring for python objects have the type
Base.Docs.Text{String}, which has been deprecated. Since python documentation is usually in RST format, maybe we could create a type for that?This has caused trouble in Pluto when displaying documentation in the help panel.