@@ -32,7 +32,7 @@ def call(arguments, expected_returncode=0, env=None):
3232 return stdout .decode ("utf-8" ), stderr .decode ("utf-8" )
3333
3434
35- def call_with_scorep (file : pathlib . Path , scorep_arguments = None , expected_returncode = 0 , env = None ):
35+ def call_with_scorep (file , scorep_arguments = None , expected_returncode = 0 , env = None ):
3636 """
3737 Shortcut for running a python file with the scorep module
3838
@@ -44,7 +44,7 @@ def call_with_scorep(file: pathlib.Path, scorep_arguments=None, expected_returnc
4444 return call (arguments + [str (file )], expected_returncode = expected_returncode , env = env )
4545
4646
47- def call_otf2_print (trace_path : pathlib . Path ):
47+ def call_otf2_print (trace_path ):
4848 trace , std_err = call (["otf2-print" , str (trace_path )])
4949 return trace , std_err
5050
@@ -67,12 +67,12 @@ def __str__(self) -> str:
6767
6868
6969class OTF2_Trace :
70- def __init__ (self , trace_path : pathlib . Path ):
70+ def __init__ (self , trace_path ):
7171 self .path = pathlib .Path (trace_path )
7272 self .trace , self .std_err = call_otf2_print (self .path )
7373 assert self .std_err == ""
7474
75- def __contains__ (self , otf2_element : OTF2_Region | OTF2_Parameter ):
75+ def __contains__ (self , otf2_element ):
7676 result = []
7777 if isinstance (otf2_element , OTF2_Region ):
7878 for event in ("ENTER" , "LEAVE" ):
@@ -90,7 +90,7 @@ def __contains__(self, otf2_element: OTF2_Region | OTF2_Parameter):
9090 raise NotImplementedError
9191 return all (result )
9292
93- def findall (self , otf2_element : OTF2_Region ):
93+ def findall (self , otf2_element ):
9494 result = []
9595 if isinstance (otf2_element , OTF2_Region ):
9696 for event in ("ENTER" , "LEAVE" ):
0 commit comments