(
self,
clinic: Clinic,
signatures: Iterable[Module | Class | Function]
)
| 70 | self.cpp.writeline(line) |
| 71 | |
| 72 | def render( |
| 73 | self, |
| 74 | clinic: Clinic, |
| 75 | signatures: Iterable[Module | Class | Function] |
| 76 | ) -> str: |
| 77 | function = None |
| 78 | for o in signatures: |
| 79 | if isinstance(o, Function): |
| 80 | if function: |
| 81 | fail("You may specify at most one function per block.\nFound a block containing at least two:\n\t" + repr(function) + " and " + repr(o)) |
| 82 | function = o |
| 83 | return self.render_function(clinic, function) |
| 84 | |
| 85 | def compiler_deprecated_warning( |
| 86 | self, |
no test coverage detected