Skip to content

Commit

Permalink
add optional
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Mar 29, 2024
1 parent cf813f5 commit a6fd518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbt/adapters/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a6fd518

Please sign in to comment.