Skip to content

Commit

Permalink
python3.7 typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
igor udot (horw) committed Jul 26, 2023
1 parent 008bbcb commit b9db548
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytest-embedded-idf/pytest_embedded_idf/unity_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,11 @@ def start_task(self) -> None:

def wait_for_result(self) -> None:
self.task_complete_event.wait()
res: t.Tuple[str, dict] | Exception = self.rp.returned_value
res: t.Tuple[str, t.Dict] | Exception = self.rp.returned_value
self.task_complete_event.clear()
self.rp.raw_data_to_report = res

def process_raw_data_to_report(self) -> dict:
def process_raw_data_to_report(self) -> t.Dict:
additional_attrs = {}
if isinstance(self.rp.raw_data_to_report, tuple) and len(self.rp.raw_data_to_report) == 2:
log = str(self.rp.raw_data_to_report[0])
Expand Down Expand Up @@ -546,7 +546,7 @@ def process_raw_data_to_report(self) -> dict:
return attrs

@staticmethod
def merge_result(test_cases_attr: list[dict]) -> dict:
def merge_result(test_cases_attr: t.List[t.Dict]) -> t.Dict:
output = {}
results = set()
time_attr = 0.0
Expand Down Expand Up @@ -594,7 +594,7 @@ def add_to_report(self, attrs):
else:
self.rp.dut.testsuite.attrs['tests'] += 1

def clear_var_values(self):
def clear_var_values(self) -> None:
self.rp.recv_sig.clear()
self.rp.returned_value = None

Expand Down

0 comments on commit b9db548

Please sign in to comment.