Skip to content

Commit

Permalink
DOC Removes uneeded __init__ in API documentation (scikit-learn#17243)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan authored May 18, 2020
1 parent 89d9729 commit 60de458
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion doc/modules/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ Samples generator

.. autosummary::
:toctree: generated/
:template: class_without_init.rst
:template: class.rst

exceptions.ChangedBehaviorWarning
exceptions.ConvergenceWarning
Expand Down
4 changes: 0 additions & 4 deletions doc/templates/class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

.. autoclass:: {{ objname }}

{% block methods %}
.. automethod:: __init__
{% endblock %}

.. include:: {{module}}.{{objname}}.examples

.. raw:: html
Expand Down
1 change: 0 additions & 1 deletion doc/templates/class_with_call.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.. autoclass:: {{ objname }}

{% block methods %}
.. automethod:: __init__
.. automethod:: __call__
{% endblock %}

Expand Down
12 changes: 0 additions & 12 deletions doc/templates/class_without_init.rst

This file was deleted.

0 comments on commit 60de458

Please sign in to comment.