(self)
| 337 | self.docstring_definition = DOCSTRING_PROTOTYPE_STRVAR |
| 338 | |
| 339 | def init_limited_capi(self) -> None: |
| 340 | self.limited_capi = self.codegen.limited_capi |
| 341 | if self.limited_capi and ( |
| 342 | (self.varpos and self.pos_only < len(self.parameters)) or |
| 343 | (any(p.is_optional() for p in self.parameters) and |
| 344 | any(p.is_keyword_only() and not p.is_optional() for p in self.parameters)) or |
| 345 | any(c.broken_limited_capi for c in self.converters)): |
| 346 | warn(f"Function {self.func.full_name} cannot use limited C API") |
| 347 | self.limited_capi = False |
| 348 | |
| 349 | def parser_body( |
| 350 | self, |
no test coverage detected