Skip to content

A better type for docstring #949

Closed
Closed
@melonedo

Description

@melonedo

PyCall.jl/src/PyCall.jl

Lines 260 to 268 in e3e3008

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions