Skip to content

Commit 5145f5e

Browse files
committed
one more try with mypy
Signed-off-by: pyalex <moskalenko.alexey@gmail.com>
1 parent cb3f162 commit 5145f5e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sdk/python/tests/integration/feature_repos/repo_configuration.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from dataclasses import dataclass, field
88
from datetime import datetime, timedelta
99
from pathlib import Path
10-
from typing import Any, Dict, List, Optional
10+
from typing import Any, Dict, List, Optional, Union
1111

1212
import pandas as pd
1313
import yaml
@@ -283,13 +283,15 @@ def construct_test_environment(
283283
execution_role_name="arn:aws:iam::402087665549:role/lambda_execution_role",
284284
)
285285

286-
registry = f"s3://feast-integration-tests/registries/{project}/registry.db"
286+
registry = (
287+
f"s3://feast-integration-tests/registries/{project}/registry.db"
288+
) # type: Union[str, RegistryConfig]
287289
else:
288290
# Note: even if it's a local feature server, the repo config does not have this configured
289291
feature_server = None
290292
registry = RegistryConfig(
291293
path=str(Path(repo_dir_name) / "registry.db"), cache_ttl_seconds=1,
292-
) # type: ignore
294+
)
293295

294296
config = RepoConfig(
295297
registry=registry,

0 commit comments

Comments
 (0)