Skip to content

Commit

Permalink
Prune some type hints from __all__s
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding committed Feb 28, 2023
1 parent 8ce59e9 commit 62037d3
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 19 deletions.
12 changes: 0 additions & 12 deletions tanjun/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,37 +32,25 @@
from __future__ import annotations

__all__: list[str] = [
"AnyCheckSig",
"AnyHooks",
"AppCommand",
"AppCommandContext",
"AutocompleteCallbackSig",
"AutocompleteContext",
"AutocompleteSig",
"BaseSlashCommand",
"CheckSig",
"Client",
"ClientCallbackNames",
"ClientLoader",
"CommandCallbackSig",
"Component",
"Context",
"ErrorHookSig",
"ExecutableCommand",
"HookSig",
"Hooks",
"ListenerCallbackSig",
"MenuCallbackSig",
"MenuCommand",
"MenuCommandCallbackSig",
"MenuContext",
"MenuHooks",
"MessageCommand",
"MessageCommandGroup",
"MessageContext",
"MessageHooks",
"MetaEventSig",
"ParserHookSig",
"SlashCommand",
"SlashCommandGroup",
"SlashContext",
Expand Down
1 change: 0 additions & 1 deletion tanjun/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"ClientCallbackNames",
"InteractionAcceptsEnum",
"MessageAcceptsEnum",
"PrefixGetterSig",
"as_loader",
"as_unloader",
"on_parser_error",
Expand Down
2 changes: 0 additions & 2 deletions tanjun/commands/slash.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@

__all__: list[str] = [
"BaseSlashCommand",
"ConverterSig",
"SlashCommand",
"SlashCommandGroup",
"UNDEFINED_DEFAULT",
"as_slash_command",
"slash_command_group",
"with_attachment_slash_option",
Expand Down
2 changes: 1 addition & 1 deletion tanjun/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"""Standard implementation of Tanjun's "components" used to manage separate features within a client."""
from __future__ import annotations

__all__: list[str] = ["AbstractComponentLoader", "Component", "OnCallbackSig"]
__all__: list[str] = ["AbstractComponentLoader", "Component"]

import abc
import asyncio
Expand Down
3 changes: 0 additions & 3 deletions tanjun/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@
__all__: list[str] = [
"AbstractOptionParser",
"Argument",
"ConverterSig",
"Option",
"Parameter",
"ShlexParser",
"UNDEFINED",
"UndefinedT",
"with_argument",
"with_greedy_argument",
"with_multi_argument",
Expand Down

0 comments on commit 62037d3

Please sign in to comment.