Skip to content

Commit 564b0f0

Browse files
committed
fix: ci.
1 parent 0928eff commit 564b0f0

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

turu-snowflake/src/turu/snowflake/connection.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
import os
22
from pathlib import Path
3-
from typing import TYPE_CHECKING, Any, Optional, Sequence, Tuple, Type, Union, cast, overload
3+
from typing import (
4+
TYPE_CHECKING,
5+
Any,
6+
Optional,
7+
Sequence,
8+
Tuple,
9+
Type,
10+
Union,
11+
cast,
12+
overload,
13+
)
414

515
from typing_extensions import Never, Unpack, override
616

@@ -62,14 +72,16 @@ def connect( # type: ignore[override]
6272
if isinstance(private_key_passphrase, str):
6373
private_key_passphrase = private_key_passphrase.encode("utf-8")
6474

65-
if isinstance(private_key, bytes) and private_key_passphrase is not None:
75+
if isinstance(private_key, bytes) and private_key_passphrase is not None:
6676
import base64
67-
from cryptography.hazmat.primitives.serialization import load_der_private_key
77+
from cryptography.hazmat.primitives.serialization import (
78+
load_der_private_key,
79+
)
6880

6981
private_key = load_der_private_key(
7082
data=base64.b64decode(private_key),
7183
password=private_key_passphrase,
72-
) # type: ignore[assignment]
84+
) # type: ignore[assignment]
7385

7486
return cls(
7587
snowflake.connector.SnowflakeConnection(

0 commit comments

Comments
 (0)