Skip to content

MethodDoc

A component that creates a MethodDoc block for class methods. Automatically adds a note about not including ‘self’ parameter if no custom note is provided.

import { MethodDoc } from "@alloy-js/python";
<MethodDoc
deprecated="string"
description={Children[]}
examples={Children[]}
note="string"
overrides="string"
parameters={ParameterDescriptor[]}
raises={string[]}
returns="string"
seeAlso={string[]}
style={"google"}
warning="string"
/>
deprecatedoptional string
descriptionChildren[]
examplesoptional Children[]
noteoptional string
overridesoptional string
parametersoptional ParameterDescriptor[]
raisesoptional string[]
returnsoptional string
seeAlsooptional string[]
styleoptional “google”
warningoptional string