2323from dataclasses import dataclass
2424from subprocess import Popen , PIPE
2525from threading import Thread
26- from typing import IO , Callable , Optional
26+ from typing import IO , Any , Callable , Optional
2727
2828from pysonar_scanner .api import SonarQubeApi
2929from pysonar_scanner .cache import Cache , CacheFile
@@ -138,7 +138,7 @@ def __init__(self, jre_path: JREResolvedPath, scanner_engine_path: pathlib.Path)
138138 self .jre_path = jre_path
139139 self .scanner_engine_path = scanner_engine_path
140140
141- def run (self , config : dict [str , any ]):
141+ def run (self , config : dict [str , Any ]):
142142 cmd = self .__build_command (self .jre_path , self .scanner_engine_path )
143143 properties_str = self .__config_to_json (config )
144144 return CmdExecutor (cmd , properties_str ).execute ()
@@ -150,6 +150,6 @@ def __build_command(self, jre_path: JREResolvedPath, scanner_engine_path: pathli
150150 cmd .append (scanner_engine_path )
151151 return cmd
152152
153- def __config_to_json (self , config : dict [str , any ]) -> str :
153+ def __config_to_json (self , config : dict [str , Any ]) -> str :
154154 scanner_properties = [{"key" : k , "value" : v } for k , v in config .items ()]
155155 return json .dumps ({"scannerProperties" : scanner_properties })
0 commit comments