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 | optional string | |
| description | Children[] | |
| examples | optional Children[] | |
| note | optional string | |
| overrides | optional string | |
| parameters | optional ParameterDescriptor[] | |
| raises | optional string[] | |
| returns | optional string | |
| seeAlso | optional string[] | |
| style | optional “google” | |
| warning | optional string |