|
1 |
| -# Copyright 2019-2023 Flavio Garcia |
| 1 | +# Copyright 2019-2024 Flavio Garcia |
2 | 2 | #
|
3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License");
|
4 | 4 | # you may not use this file except in compliance with the License.
|
|
11 | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | 12 | # See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 |
| -import sys |
15 | 14 |
|
16 | 15 | from . import process
|
17 | 16 | import click
|
18 | 17 | from click.core import Command, Context, Group, HelpFormatter
|
19 | 18 | import typing as t
|
20 |
| -from typing import Any, Callable, Dict, List, Optional |
| 19 | +from typing import Any, Callable, List, Optional |
| 20 | +import sys |
21 | 21 |
|
22 | 22 |
|
23 | 23 | class TaskioContext(Context):
|
24 | 24 |
|
25 |
| - def __init__( |
26 |
| - self, |
27 |
| - command: Command, |
28 |
| - parent: Optional[Context] = None, |
29 |
| - info_name: Optional[str] = None, |
30 |
| - obj: Optional[Any] = None, |
31 |
| - auto_envvar_prefix: Optional[str] = None, |
32 |
| - default_map: Optional[Dict[str, Any]] = None, |
33 |
| - terminal_width: Optional[int] = None, |
34 |
| - max_content_width: Optional[int] = None, |
35 |
| - resilient_parsing: bool = False, |
36 |
| - allow_extra_args: Optional[bool] = None, |
37 |
| - allow_interspersed_args: Optional[bool] = None, |
38 |
| - ignore_unknown_options: Optional[bool] = None, |
39 |
| - help_option_names: Optional[List[str]] = None, |
40 |
| - token_normalize_func: Optional[Callable[[str], str]] = None, |
41 |
| - color: Optional[bool] = None, |
42 |
| - show_default: Optional[bool] = None, |
43 |
| - ) -> None: |
44 |
| - super().__init__(command, parent, info_name, obj, auto_envvar_prefix, |
45 |
| - default_map, terminal_width, max_content_width, |
46 |
| - resilient_parsing, allow_extra_args, |
47 |
| - allow_interspersed_args, ignore_unknown_options, |
48 |
| - help_option_names, token_normalize_func, color, |
49 |
| - show_default) |
50 |
| - self.loader = None |
| 25 | + loader: process.TaskioLoader |
51 | 26 |
|
52 | 27 |
|
53 | 28 | class TaskioRootGroup(Group):
|
|
0 commit comments