@@ -166,7 +166,7 @@ def setup_logging(
166166 root_logger .info (f"Render ID: { render_id } " ) # Ensure render ID is logged in to codeplain.log file
167167
168168
169- def _check_connection (codeplainAPI ):
169+ def _check_connection (codeplainAPI : codeplain_api . CodeplainAPI ):
170170 """Check API connectivity and validate API key and client version."""
171171 response = codeplainAPI .connection_check (system_config .client_version )
172172
@@ -185,7 +185,7 @@ def _check_connection(codeplainAPI):
185185 )
186186
187187
188- def render (args , run_state : RunState , codeplain_api , event_bus : EventBus ): # noqa: C901
188+ def render (args , run_state : RunState , event_bus : EventBus ): # noqa: C901
189189 template_dirs = file_utils .get_template_directories (args .filename , args .template_dir , DEFAULT_TEMPLATE_DIRS )
190190
191191 console .info (f"Rendering { args .filename } to target code." )
@@ -259,7 +259,7 @@ def main(): # noqa: C901
259259 )
260260
261261 console .debug (f"Render ID: { run_state .render_id } " ) # Ensure render ID is logged to the console
262- render (args , run_state , codeplain_api , event_bus )
262+ render (args , run_state , event_bus )
263263 except InvalidFridArgument as e :
264264 exc_info = sys .exc_info ()
265265 console .error (f"Invalid FRID argument: { str (e )} .\n " )
0 commit comments