|
15 | 15 | """
|
16 | 16 |
|
17 | 17 | # Core classes
|
18 |
| -from .core import Context, BaseCommand, Command, MultiCommand, Group, \ |
19 |
| - CommandCollection, Parameter, Option, Argument |
| 18 | +from .core import ( |
| 19 | + Context as Context, |
| 20 | + BaseCommand as BaseCommand, |
| 21 | + Command as Command, |
| 22 | + MultiCommand as MultiCommand, |
| 23 | + Group as Group, |
| 24 | + CommandCollection as CommandCollection, |
| 25 | + Parameter as Parameter, |
| 26 | + Option as Option, |
| 27 | + Argument as Argument, |
| 28 | +) |
20 | 29 |
|
21 | 30 | # Globals
|
22 |
| -from .globals import get_current_context |
| 31 | +from .globals import get_current_context as get_current_context |
23 | 32 |
|
24 | 33 | # Decorators
|
25 |
| -from .decorators import pass_context, pass_obj, make_pass_decorator, \ |
26 |
| - command, group, argument, option, confirmation_option, \ |
27 |
| - password_option, version_option, help_option |
| 34 | +from .decorators import ( |
| 35 | + pass_context as pass_context, |
| 36 | + pass_obj as pass_obj, |
| 37 | + make_pass_decorator as make_pass_decorator, |
| 38 | + command as command, |
| 39 | + group as group, |
| 40 | + argument as argument, |
| 41 | + option as option, |
| 42 | + confirmation_option as confirmation_option, |
| 43 | + password_option as password_option, |
| 44 | + version_option as version_option, |
| 45 | + help_option as help_option, |
| 46 | +) |
28 | 47 |
|
29 | 48 | # Types
|
30 |
| -from .types import ParamType, File, Path, Choice, IntRange, Tuple, \ |
31 |
| - STRING, INT, FLOAT, BOOL, UUID, UNPROCESSED |
| 49 | +from .types import ( |
| 50 | + ParamType as ParamType, |
| 51 | + File as File, |
| 52 | + Path as Path, |
| 53 | + Choice as Choice, |
| 54 | + IntRange as IntRange, |
| 55 | + Tuple as Tuple, |
| 56 | + STRING as STRING, |
| 57 | + INT as INT, |
| 58 | + FLOAT as FLOAT, |
| 59 | + BOOL as BOOL, |
| 60 | + UUID as UUID, |
| 61 | + UNPROCESSED as UNPROCESSED, |
| 62 | +) |
32 | 63 |
|
33 | 64 | # Utilities
|
34 |
| -from .utils import echo, get_binary_stream, get_text_stream, open_file, \ |
35 |
| - format_filename, get_app_dir, get_os_args |
| 65 | +from .utils import ( |
| 66 | + echo as echo, |
| 67 | + get_binary_stream as get_binary_stream, |
| 68 | + get_text_stream as get_text_stream, |
| 69 | + open_file as open_file, |
| 70 | + format_filename as format_filename, |
| 71 | + get_app_dir as get_app_dir, |
| 72 | + get_os_args as get_os_args, |
| 73 | +) |
36 | 74 |
|
37 | 75 | # Terminal functions
|
38 |
| -from .termui import prompt, confirm, get_terminal_size, echo_via_pager, \ |
39 |
| - progressbar, clear, style, unstyle, secho, edit, launch, getchar, \ |
40 |
| - pause |
| 76 | +from .termui import ( |
| 77 | + prompt as prompt, |
| 78 | + confirm as confirm, |
| 79 | + get_terminal_size as get_terminal_size, |
| 80 | + echo_via_pager as echo_via_pager, |
| 81 | + progressbar as progressbar, |
| 82 | + clear as clear, |
| 83 | + style as style, |
| 84 | + unstyle as unstyle, |
| 85 | + secho as secho, |
| 86 | + edit as edit, |
| 87 | + launch as launch, |
| 88 | + getchar as getchar, |
| 89 | + pause as pause, |
| 90 | +) |
41 | 91 |
|
42 | 92 | # Exceptions
|
43 |
| -from .exceptions import ClickException, UsageError, BadParameter, \ |
44 |
| - FileError, Abort, NoSuchOption, BadOptionUsage, BadArgumentUsage, \ |
45 |
| - MissingParameter |
| 93 | +from .exceptions import ( |
| 94 | + ClickException as ClickException, |
| 95 | + UsageError as UsageError, |
| 96 | + BadParameter as BadParameter, |
| 97 | + FileError as FileError, |
| 98 | + Abort as Abort, |
| 99 | + NoSuchOption as NoSuchOption, |
| 100 | + BadOptionUsage as BadOptionUsage, |
| 101 | + BadArgumentUsage as BadArgumentUsage, |
| 102 | + MissingParameter as MissingParameter, |
| 103 | +) |
46 | 104 |
|
47 | 105 | # Formatting
|
48 |
| -from .formatting import HelpFormatter, wrap_text |
| 106 | +from .formatting import HelpFormatter as HelpFormatter, wrap_text as wrap_text |
49 | 107 |
|
50 | 108 | # Parsing
|
51 |
| -from .parser import OptionParser |
| 109 | +from .parser import OptionParser as OptionParser |
52 | 110 |
|
53 | 111 |
|
54 | 112 | __all__ = [
|
|
0 commit comments