:orphan:
.. _s_11PytoRuntime6MethodV:
``Method``
==========
Represents the definition of a Python method.
.. raw:: html
.. rubric:: Declaration
.. raw:: html
.. rubric:: Discussion
See :swift:symbol:`PytoRuntime.MethodBody` for how to implement it.
.. rubric:: Initializers
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime6MethodV4name3doc9signature10decorators4bodyACSS_SSSgAA9SignatureVyKcSayAA6ObjectCSgGycAA8Parsable_pSgAM_AA14ArgumentParserVtKctcfc
.. raw:: html
Initializes the method definition.
.. rubric:: Properties
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime6MethodV4bodyyAA8Parsable_pSgAA6ObjectC_AA14ArgumentParserVtKcvp
.. raw:: html
The body of the method called by Python.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime6MethodV10decoratorsSayAA6ObjectCGvp
.. raw:: html
Decorators wrapping the method.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime6MethodV9signatureAA9SignatureVyKcSgvp
.. raw:: html
A closure returning the method’s signature.
.. rubric:: Conforms to
- :ref:`s_11PytoRuntime6MemberP`