Line | |
---|
1 | """ |
---|
2 | Type definitions used by modules in this package. |
---|
3 | """ |
---|
4 | |
---|
5 | from typing import List, Tuple, Type, Sequence, Any |
---|
6 | from twisted.python.usage import Options |
---|
7 | |
---|
8 | |
---|
9 | # Historically, subcommands were implemented as lists, but due to a |
---|
10 | # [designed contraint in mypy](https://stackoverflow.com/a/52559625/70170), |
---|
11 | # a Tuple is required. |
---|
12 | SubCommand = Tuple[str, None, Type[Options], str] |
---|
13 | |
---|
14 | SubCommands = List[SubCommand] |
---|
15 | |
---|
16 | Parameters = List[Sequence[Any]] |
---|
17 | |
---|
18 | Flags = List[Tuple[str, None, str]] |
---|
Note: See
TracBrowser
for help on using the repository browser.