Skip to content

Commit

Permalink
sof_perf_analyzer: remove type annotation for skip_to_first_trace()
Browse files Browse the repository at this point in the history
The skip_to_first_trace() function either return a value
or raise an exception. Currently there is no good way
to do type annotation for such function, so remove its
type annotation.

Signed-off-by: Chao Song <[email protected]>
  • Loading branch information
Chao Song committed Sep 7, 2023
1 parent ce0e02a commit daaf9e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/sof_perf_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import pathlib
import argparse
from typing import TextIO
from typing import Optional
from typing import Generator
from dataclasses import dataclass

Expand Down Expand Up @@ -115,7 +114,7 @@ def dispatch_trace_item(trace_item: TraceItem):
if trace_item.func == 'comp_copy':
collect_perf_info(trace_item)

def skip_to_first_trace(trace_item_gen: TraceItemGenerator) -> Optional[TraceItem]:
def skip_to_first_trace(trace_item_gen: TraceItemGenerator):
'''The current sof-test test case may collect some traces belonging to previous
test case due to mtrace is configured in deferred mode. This function consumes
those traces from the generator, and return the first trace item of current test.
Expand Down

0 comments on commit daaf9e0

Please sign in to comment.