@@ -160,22 +160,6 @@ def _module_alias(module_name: str) -> str:
160160 return module_name [0 ].upper () + module_name [1 :]
161161
162162
163- # Display-name overrides for modules whose directory names don't
164- # capitalise to a natural form.
165- _MODULE_DISPLAY_NAMES : dict [str , str ] = {
166- "liff" : "LIFF" ,
167- "moduleattach" : "ModuleAttach" ,
168- }
169-
170-
171- def _module_display_name (module_name : str ) -> str :
172- """Return a human-readable display name for a module directory name.
173-
174- Falls back to ``str.capitalize()`` for modules not in the override map.
175- """
176- return _MODULE_DISPLAY_NAMES .get (module_name , module_name .capitalize ())
177-
178-
179163# ---------------------------------------------------------------------------
180164# AST Method Extraction
181165# ---------------------------------------------------------------------------
@@ -707,14 +691,8 @@ def _generate_client(
707691 lines .append ('# coding: utf-8' )
708692 lines .append ('' )
709693
710- # Module docstring (dynamic module list)
711- qualifier = "async " if is_async else ""
712- display_modules = ", " .join (_module_display_name (m ) for m in unique_modules )
713- lines .append (f'"""A unified { qualifier } client that wraps all per-domain API clients' )
714- lines .append (f'({ display_modules } ).' )
715- lines .append ('' )
716- lines .append ('Auto-generated by tools/generate_unified_client.py. Do not edit manually.' )
717- lines .append ('"""' )
694+ # Auto-generated comment (no module docstring — it leaks into Sphinx output)
695+ lines .append ('# Auto-generated by tools/generate_unified_client.py. Do not edit manually.' )
718696 lines .append ('' )
719697
720698 # Typing / pydantic imports (filtered to actually used names)
0 commit comments