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" />import { MethodDoc } from "@alloy-js/python/stc";
MethodDoc({ deprecated: string, description: Children[], examples: Children[], note: string, overrides: string, parameters: ParameterDescriptor[], raises: string[], returns: string, seeAlso: string[], style: "google", warning: string,}).children(children)| deprecated | optionalstring |
| description | Children[] |
| examples | optionalChildren[] |
| note | optionalstring |
| overrides | optionalstring |
| parameters | optionalParameterDescriptor[] |
| raises | optionalstring[] |
| returns | optionalstring |
| seeAlso | optionalstring[] |
| style | optional”google” |
| warning | optionalstring |