Skip to content

Commit

Permalink
import only for type check, Makefile pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Oct 20, 2023
1 parent e9f889f commit 4e946ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ help: ## Print this message
### Dependency commands ###
install: ## Install dependencies
pipenv install --dev
pipenv run pre-commit install

update: install # update all Python dependencies
pipenv clean
Expand Down
8 changes: 5 additions & 3 deletions lambdas/alma_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
import os
import tarfile
from collections.abc import Generator
from typing import IO
from typing import IO, TYPE_CHECKING

import boto3
import smart_open # type: ignore[import]
from mypy_boto3_s3.client import S3Client

if TYPE_CHECKING:
from mypy_boto3_s3.client import S3Client # pragma: no cover

from lambdas import helpers

logger = logging.getLogger(__name__)


def extract_file_from_source_bucket_to_target_bucket(
s3_client: S3Client,
s3_client: "S3Client",
source_bucket: str,
source_file_key: str,
target_bucket: str,
Expand Down

0 comments on commit 4e946ae

Please sign in to comment.