@@ -283,10 +283,10 @@ def print_config_spec(
283283 content = json .dumps (self .config_spec , indent = 2 )
284284
285285 if output_file :
286- output_file .write_text (content )
286+ output_file .write_text (content ) # pyrefly: ignore[unbound-name]
287287 return
288288
289- syntax_highlighted = Syntax (content , format )
289+ syntax_highlighted = Syntax (content , format ) # pyrefly: ignore[unbound-name]
290290 rich .print (syntax_highlighted , file = sys .stderr if stderr else None )
291291
292292 @property
@@ -300,7 +300,7 @@ def _yaml_spec(self) -> str:
300300 for each connector.
301301 """
302302 spec_obj : ConnectorSpecification = self ._get_spec ()
303- spec_dict = spec_obj .dict (exclude_unset = True )
303+ spec_dict = spec_obj .model_dump (exclude_unset = True )
304304 # convert to a yaml string
305305 return yaml .dump (spec_dict )
306306
@@ -405,25 +405,33 @@ def _peek_airbyte_message(
405405 AirbyteConnectorFailedError: If a TRACE message of type ERROR is emitted.
406406 """
407407 if message .type == Type .LOG :
408- self ._print_info_message (message .log .message )
408+ self ._print_info_message (message .log .message ) # pyrefly: ignore[missing-attribute]
409409 return
410410
411- if message .type == Type .TRACE and message .trace .type == TraceType .ERROR :
412- self ._print_error_message (message .trace .error .message )
411+ if (
412+ message .type == Type .TRACE
413+ and message .trace .type == TraceType .ERROR # pyrefly: ignore[missing-attribute]
414+ ):
415+ self ._print_error_message (
416+ message .trace .error .message # pyrefly: ignore[missing-attribute]
417+ )
413418 if raise_on_error :
414419 raise exc .AirbyteConnectorFailedError (
415420 connector_name = self .name ,
416- message = message .trace .error .message ,
421+ message = message .trace .error .message , # pyrefly: ignore[missing-attribute]
417422 log_text = self ._last_log_messages ,
418423 )
419424 return
420425
421426 if (
422427 message .type == Type .CONTROL
423- and message .control .type == OrchestratorType .CONNECTOR_CONFIG
428+ and message .control .type # pyrefly: ignore[missing-attribute]
429+ == OrchestratorType .CONNECTOR_CONFIG
424430 and self .config_change_callback is not None
425431 ):
426- self .config_change_callback (message .control .connectorConfig .config )
432+ self .config_change_callback (
433+ message .control .connectorConfig .config # pyrefly: ignore[missing-attribute]
434+ )
427435 return
428436
429437 def _execute (
0 commit comments