|
11 | 11 | # See the License for the specific language governing permissions and
|
12 | 12 | # limitations under the License
|
13 | 13 |
|
14 |
| -from six import text_type |
15 |
| -from typing import Any, Dict, List, Optional, Text, Tuple, Union |
| 14 | +from typing import Any, Dict, List, Optional, Tuple, Union |
16 | 15 |
|
17 | 16 | class Suite:
|
18 |
| - attributes: Union[List[Text], Dict[Text]] = ... |
19 |
| - doc: Text = ... |
20 |
| - end_time: Text = ... |
21 |
| - longname: Text = ... |
22 |
| - message: Text = ... |
23 |
| - metadata: Dict[Text, Text] = ... |
24 |
| - name: Text = ... |
25 |
| - robot_id: Text = ... |
26 |
| - rp_item_id: Optional[Text] = ... |
27 |
| - rp_parent_item_id: Optional[Text] = ... |
28 |
| - start_time: Optional[Text] = ... |
29 |
| - statistics: Text = ... |
30 |
| - status: Text = ... |
31 |
| - suites: List[Text] = ... |
32 |
| - tests: List[Text] = ... |
| 17 | + attributes: Union[List[str], Dict[str, Any]] = ... |
| 18 | + doc: str = ... |
| 19 | + end_time: str = ... |
| 20 | + longname: str = ... |
| 21 | + message: str = ... |
| 22 | + metadata: Dict[str, str] = ... |
| 23 | + name: str = ... |
| 24 | + robot_id: str = ... |
| 25 | + rp_item_id: Optional[str] = ... |
| 26 | + rp_parent_item_id: Optional[str] = ... |
| 27 | + start_time: Optional[str] = ... |
| 28 | + statistics: str = ... |
| 29 | + status: str = ... |
| 30 | + suites: List[str] = ... |
| 31 | + tests: List[str] = ... |
33 | 32 | total_tests: int = ...
|
34 |
| - type: Text = 'SUITE' |
35 |
| - def __init__(self, name: Text, attributes: Dict[Text, Any]) -> None: ... |
| 33 | + type: str = 'SUITE' |
| 34 | + def __init__(self, name: str, attributes: Dict[str, Any]) -> None: ... |
36 | 35 | @property
|
37 |
| - def source(self) -> Text: ... |
38 |
| - def update(self, attributes: Dict[Text, Any]) -> Union[Launch, Suite]: ... |
| 36 | + def source(self) -> str: ... |
| 37 | + def update(self, attributes: Dict[str, Any]) -> Union[Launch, Suite]: ... |
39 | 38 |
|
40 | 39 | class Launch(Suite):
|
41 |
| - type: Text = 'LAUNCH' |
42 |
| - def __init__(self, name: Text, attributes: Dict[Text, Any]) -> None: ... |
| 40 | + type: str = 'LAUNCH' |
| 41 | + def __init__(self, name: str, attributes: Dict[str, Any]) -> None: ... |
43 | 42 |
|
44 | 43 | class Test:
|
45 |
| - _critical: Text = ... |
46 |
| - _tags: List[Text] = ... |
47 |
| - _attributes: Dict[Text, Any] = ... |
48 |
| - attributes: List[Dict[Text, Text]] = ... |
49 |
| - doc: Text = ... |
50 |
| - end_time: Text = ... |
51 |
| - longname: Text = ... |
52 |
| - message: Text = ... |
53 |
| - name: Text = ... |
54 |
| - robot_id: Text = ... |
55 |
| - rp_item_id: Optional[Text] = ... |
56 |
| - rp_parent_item_id: Optional[Text] = ... |
57 |
| - start_time: Text = ... |
58 |
| - status: Text = ... |
59 |
| - template: Text = ... |
60 |
| - type: Text = 'TEST' |
61 |
| - def __init__(self, name: Text, attributes: Dict[Text, Any]) -> None: ... |
| 44 | + _critical: str = ... |
| 45 | + _tags: List[str] = ... |
| 46 | + _attributes: Dict[str, Any] = ... |
| 47 | + attributes: List[Dict[str, str]] = ... |
| 48 | + doc: str = ... |
| 49 | + end_time: str = ... |
| 50 | + longname: str = ... |
| 51 | + message: str = ... |
| 52 | + name: str = ... |
| 53 | + robot_id: str = ... |
| 54 | + rp_item_id: Optional[str] = ... |
| 55 | + rp_parent_item_id: Optional[str] = ... |
| 56 | + start_time: str = ... |
| 57 | + status: str = ... |
| 58 | + template: str = ... |
| 59 | + type: str = 'TEST' |
| 60 | + def __init__(self, name: str, attributes: Dict[str, Any]) -> None: ... |
62 | 61 | @property
|
63 | 62 | def critical(self) -> bool: ...
|
64 | 63 | @property
|
65 |
| - def tags(self) -> List[Text]: ... |
| 64 | + def tags(self) -> List[str]: ... |
66 | 65 | @property
|
67 |
| - def source(self) -> Text: ... |
| 66 | + def source(self) -> str: ... |
68 | 67 | @property
|
69 |
| - def code_ref(self) -> Text: ... |
| 68 | + def code_ref(self) -> str: ... |
70 | 69 | @property
|
71 |
| - def test_case_id(self) -> Optional[Text]: ... |
72 |
| - def update(self, attributes: Dict[Text, Any]) -> Test: ... |
| 70 | + def test_case_id(self) -> Optional[str]: ... |
| 71 | + def update(self, attributes: Dict[str, Any]) -> Test: ... |
73 | 72 |
|
74 | 73 | class Keyword:
|
75 |
| - attributes: Dict[Text, Any] = ... |
76 |
| - args: List[Text] = ... |
77 |
| - assign: List[Text] = ... |
78 |
| - doc: Text = ... |
79 |
| - end_time: Text = ... |
80 |
| - keyword_name: Text = ... |
81 |
| - keyword_type: Text = ... |
82 |
| - libname: Text = ... |
83 |
| - name: Text = ... |
84 |
| - rp_item_id: Optional[Text] = ... |
85 |
| - rp_parent_item_id: Optional[Text] = ... |
86 |
| - parent_type: Text = ... |
87 |
| - start_time: Text = ... |
88 |
| - status: Text = ... |
89 |
| - tags: List[Text] = ... |
90 |
| - type: Text = 'KEYWORD' |
91 |
| - def __init__(self, name: Text, attributes: Dict[Text, Any], parent_type: Optional[Text] = None) -> None: ... |
92 |
| - def get_name(self) -> Text: ... |
93 |
| - def get_type(self) -> Text: ... |
94 |
| - def update(self, attributes: Dict[Text, Any]) -> Keyword: ... |
| 74 | + attributes: Dict[str, Any] = ... |
| 75 | + args: List[str] = ... |
| 76 | + assign: List[str] = ... |
| 77 | + doc: str = ... |
| 78 | + end_time: str = ... |
| 79 | + keyword_name: str = ... |
| 80 | + keyword_type: str = ... |
| 81 | + libname: str = ... |
| 82 | + name: str = ... |
| 83 | + rp_item_id: Optional[str] = ... |
| 84 | + rp_parent_item_id: Optional[str] = ... |
| 85 | + parent_type: str = ... |
| 86 | + start_time: str = ... |
| 87 | + status: str = ... |
| 88 | + tags: List[str] = ... |
| 89 | + type: str = 'KEYWORD' |
| 90 | + def __init__(self, name: str, attributes: Dict[str, Any], parent_type: Optional[str] = None) -> None: ... |
| 91 | + def get_name(self) -> str: ... |
| 92 | + def get_type(self) -> str: ... |
| 93 | + def update(self, attributes: Dict[str, Any]) -> Keyword: ... |
95 | 94 |
|
96 |
| -class LogMessage(text_type): |
97 |
| - attachment: Optional[Dict[Text, Text]] = ... |
| 95 | +class LogMessage(str): |
| 96 | + attachment: Optional[Dict[str, str]] = ... |
98 | 97 | launch_log: bool = ...
|
99 |
| - item_id: Optional[Text] = ... |
100 |
| - level: Text = ... |
101 |
| - message: Text = ... |
| 98 | + item_id: Optional[str] = ... |
| 99 | + level: str = ... |
| 100 | + message: str = ... |
102 | 101 | def __init__(self, *args: Tuple, **kwargs: Dict) -> None: ...
|
0 commit comments