Skip to content

Commit cae107e

Browse files
committed
Update typing
1 parent b424c9b commit cae107e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/apify/storage_clients/_apify/_utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,19 @@
77

88
from apify_client import ApifyClientAsync
99
from crawlee._utils.crypto import compute_short_hash
10-
from crawlee.storages import Dataset, KeyValueStore, RequestQueue
1110

1211
from apify._configuration import Configuration
1312

1413
if TYPE_CHECKING:
1514
from types import TracebackType
1615

1716
from apify_client.clients import KeyValueStoreClientAsync
17+
from crawlee.storages import Dataset, KeyValueStore, RequestQueue
1818

1919

2020
logger = getLogger(__name__)
2121

2222

23-
_StorageT = type[Dataset | KeyValueStore | RequestQueue]
24-
25-
2623
class Alias:
2724
"""Class for handling aliases.
2825
@@ -40,7 +37,9 @@ class Alias:
4037
ALIAS_STORAGE_KEY_SEPARATOR = ','
4138
ALIAS_MAPPING_KEY = '__STORAGE_ALIASES_MAPPING'
4239

43-
def __init__(self, storage_type: _StorageT, alias: str, configuration: Configuration) -> None:
40+
def __init__(
41+
self, storage_type: type[Dataset | KeyValueStore | RequestQueue], alias: str, configuration: Configuration
42+
) -> None:
4443
self.storage_type = storage_type
4544
self.alias = alias
4645
self.additional_cache_key = self.get_additional_cache_key(configuration)

0 commit comments

Comments
 (0)