From f595f1249087aa8f4276d14389ab3a4e635c3f5f Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Wed, 11 Oct 2023 17:13:50 +0200 Subject: [PATCH] Add missing dev deps (for heavy stubs) and typo Signed-off-by: Samuel Giffard --- requirements.dev.txt | 3 +++ rohmu/factory.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/requirements.dev.txt b/requirements.dev.txt index 3c5267f6..f344fe58 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -21,3 +21,6 @@ types-mock types-requests # Extra stubs google-api-python-client-stubs +# Used for their stubs +zstandard==0.21.0 +python-snappy==0.6.1 diff --git a/rohmu/factory.py b/rohmu/factory.py index 11c52689..71bbb7d6 100644 --- a/rohmu/factory.py +++ b/rohmu/factory.py @@ -68,10 +68,10 @@ def get_transfer_model(storage_config: Config) -> StorageModel: def get_transfer(storage_config: Config) -> BaseTransfer[Any]: storage_config = storage_config.copy() - noitifier_config = storage_config.pop("notifier", None) + notifier_config = storage_config.pop("notifier", None) notifier = None - if noitifier_config is not None: - notifier = get_notifier(noitifier_config) + if notifier_config is not None: + notifier = get_notifier(notifier_config) model = get_transfer_model(storage_config) return get_transfer_from_model(model, notifier)