Skip to content

Commit 006189b

Browse files
committed
Fix docs
1 parent 7c11594 commit 006189b

File tree

4 files changed

+6
-36
lines changed

4 files changed

+6
-36
lines changed

docs/source/linebot.v3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ linebot.v3 package
33

44
.. automodule:: linebot.v3
55

6-
LineBotClient
7-
--------------
6+
API
7+
---
88

99
.. automodule:: linebot.v3.line_bot_client
1010
:members:

linebot/v3/async_line_bot_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# coding: utf-8
22

3-
"""A unified async client that wraps all per-domain API clients
4-
(Audience, Insight, LIFF, Messaging, Module, ModuleAttach, Shop).
5-
6-
Auto-generated by tools/generate_unified_client.py. Do not edit manually.
7-
"""
3+
# Auto-generated by tools/generate_unified_client.py. Do not edit manually.
84

95
from typing import Optional, Union
106
from typing_extensions import Annotated

linebot/v3/line_bot_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# coding: utf-8
22

3-
"""A unified client that wraps all per-domain API clients
4-
(Audience, Insight, LIFF, Messaging, Module, ModuleAttach, Shop).
5-
6-
Auto-generated by tools/generate_unified_client.py. Do not edit manually.
7-
"""
3+
# Auto-generated by tools/generate_unified_client.py. Do not edit manually.
84

95
from typing import Optional, Union
106
from typing_extensions import Annotated

tools/generate_unified_client.py

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)