Skip to content

Commit f2a602b

Browse files
committed
add fallback for docstring(::Function)
1 parent f0d0685 commit f2a602b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/StatisticalTraits.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ abstract_type(::Type) = Any
173173
is_wrapper(::Type) = false # or `true`
174174
supports_online(::Type) = false # or `true`
175175
docstring(M::Type) = string(M) # some `String`
176+
docstring(Contructor::Function) = Base.Docs.doc(Constructor) |> string
176177
is_supervised(::Type) = false # or `true`
177178
human_name(M::Type) = snakecase(name(M), delim=' ') # `name` defined below
178179
orientation(::Type) = :loss # or `:score`, `:other`

0 commit comments

Comments
 (0)