464 (boolean) |
465 (boolean) |
465 @return methods list section (string) |
466 @return methods list section (string) |
466 """ |
467 """ |
467 lst = [] |
468 lst = [] |
468 if includeInit: |
469 if includeInit: |
469 try: |
470 with contextlib.suppress(KeyError): |
470 lst.append(self.listEntryTemplate.format( |
471 lst.append(self.listEntryTemplate.format( |
471 **{'Link': "{0}.{1}".format(className, '__init__'), |
472 **{'Link': "{0}.{1}".format(className, '__init__'), |
472 'Name': clsName, |
473 'Name': clsName, |
473 'Description': self.__getShortDescription( |
474 'Description': self.__getShortDescription( |
474 sectionDict['__init__'].description), |
475 sectionDict['__init__'].description), |
477 self.listEntryDeprecatedTemplate or "", |
478 self.listEntryDeprecatedTemplate or "", |
478 })) |
479 })) |
479 self.keywords.append( |
480 self.keywords.append( |
480 ("{0} (Constructor)".format(className), |
481 ("{0} (Constructor)".format(className), |
481 "#{0}.{1}".format(className, '__init__'))) |
482 "#{0}.{1}".format(className, '__init__'))) |
482 except KeyError: |
|
483 pass |
|
484 |
483 |
485 for name in names: |
484 for name in names: |
486 lst.append(self.listEntryTemplate.format( |
485 lst.append(self.listEntryTemplate.format( |
487 **{'Link': "{0}.{1}".format(className, name), |
486 **{'Link': "{0}.{1}".format(className, name), |
488 'Name': sectionDict[name].name, |
487 'Name': sectionDict[name].name, |