code: def format_cffi_externs(cls):
      
      extern_decls = [
        f.extern_signature.pretty_print()
        for _, f in cls._extern_fields.items()
      ]
      return (
        'extern "Python" {\n'
        + '\n'.join(extern_decls)
        + '\n}\n')
docs: Generate stubs for the cffi bindings from @_extern_decl methods.