Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-cgorrie committed Apr 30, 2024
1 parent 0bf2920 commit 4da194e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/snowflake/cli/plugins/stage/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from snowflake.cli.api.exceptions import SnowflakeSQLExecutionError
from snowflake.cli.api.secure_path import UNLIMITED, SecurePath
from snowflake.connector.cursor import DictCursor, SnowflakeCursor
from snowflake.connector.cursor import SnowflakeCursor

from .manager import StageManager

Expand Down Expand Up @@ -47,7 +47,9 @@ def __str__(self) -> str:
"""
Method override for the standard behavior of string representation for this class.
"""
components: List[str] = (
components: List[
str
] = (
[]
) # py3.8 does not support subscriptions for builtin list, hence using List

Expand Down Expand Up @@ -142,16 +144,6 @@ def strip_stage_name(path: str) -> str:
return "/".join(path.split("/")[1:])


# def build_md5_map(list_stage_cursor: DictCursor) -> Dict[str, str]:
# """
# Returns a mapping of relative stage paths to their md5sums.
# """
# return {
# strip_stage_name(file["name"]): file["md5"]
# for file in list_stage_cursor.fetchall()
# }


def build_md5_map(list_stage_cursor: SnowflakeCursor) -> Dict[str, str]:
"""
Returns a mapping of relative stage paths to their md5sums.
Expand Down

0 comments on commit 4da194e

Please sign in to comment.