Skip to content

Commit

Permalink
builtins: List decorators in separate section.
Browse files Browse the repository at this point in the history
This moves the built-in decorators to their own section and uses
`autodecorator` to indicate they are decorators.
  • Loading branch information
dlech authored and laurensvalk committed Aug 5, 2021
1 parent 39dc53f commit 5848283
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/main/micropython/builtins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ Class-related functions

.. autofunction:: ubuiltins.callable

.. autofunction:: ubuiltins.classmethod

.. autofunction:: ubuiltins.dir

.. autofunction:: ubuiltins.getattr
Expand All @@ -107,8 +105,6 @@ Class-related functions

.. autofunction:: ubuiltins.setattr

.. autofunction:: ubuiltins.staticmethod

.. autofunction:: ubuiltins.super

Input/output functions
Expand All @@ -135,3 +131,11 @@ Runtime-related functions
.. autofunction:: ubuiltins.id

.. autofunction:: ubuiltins.help


Method decorators
-----------------

.. autodecorator:: ubuiltins.classmethod

.. autodecorator:: ubuiltins.staticmethod

0 comments on commit 5848283

Please sign in to comment.