Interface
(ifc *Interface)
| 299 | // Interface |
| 300 | |
| 301 | func (g *pyGen) genInterface(ifc *Interface) { |
| 302 | strNm := ifc.obj.Name() |
| 303 | g.pywrap.Printf(` |
| 304 | # Python type for interface %[3]s |
| 305 | class %[1]s(go.GoClass): |
| 306 | ""%[2]q"" |
| 307 | `, |
| 308 | strNm, |
| 309 | ifc.Doc(), |
| 310 | ifc.GoName(), |
| 311 | ) |
| 312 | g.pywrap.Indent() |
| 313 | g.genIfaceInit(ifc) |
| 314 | g.genIfaceMethods(ifc) |
| 315 | g.pywrap.Outdent() |
| 316 | } |
| 317 | |
| 318 | func (g *pyGen) genIfaceInit(ifc *Interface) { |
| 319 | g.pywrap.Printf("def __init__(self, *args, **kwargs):\n") |
no test coverage detected