From a6fd5183763f2031428be7374473bd47f80a0ffa Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Fri, 29 Mar 2024 15:06:34 -0500 Subject: [PATCH] add optional --- dbt/adapters/factory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbt/adapters/factory.py b/dbt/adapters/factory.py index 31077dc9..965565be 100644 --- a/dbt/adapters/factory.py +++ b/dbt/adapters/factory.py @@ -101,7 +101,7 @@ def register_adapter( self, config: AdapterRequiredConfig, mp_context: SpawnContext, - AdapterRegistered_log_level: EventLevel = EventLevel.INFO + AdapterRegistered_log_level: Optional[EventLevel] = EventLevel.INFO ) -> None: adapter_name = config.credentials.type adapter_type = self.get_adapter_class_by_name(adapter_name) @@ -198,8 +198,8 @@ def get_adapter_constraint_support(self, name: Optional[str]) -> List[str]: FACTORY: AdapterContainer = AdapterContainer() -def register_adapter(config: AdapterRequiredConfig, mp_context: SpawnContext, AdapterRegistered_log_level: EventLevel) -> None: - FACTORY.register_adapter(config, mp_context, AdapterRegistered_log_level=EventLevel.INFO) +def register_adapter(config: AdapterRequiredConfig, mp_context: SpawnContext, AdapterRegistered_log_level: Optional[EventLevel]) -> None: + FACTORY.register_adapter(config, mp_context, AdapterRegistered_log_level) def get_adapter(config: AdapterRequiredConfig):