Skip to content

Commit

Permalink
Old-style Type Hints
Browse files Browse the repository at this point in the history
  • Loading branch information
flavour committed Aug 26, 2024
1 parent 067377b commit b359328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/sdk/src/hamilton_sdk/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import traceback
from datetime import timezone
from types import ModuleType
from typing import Any, Callable, Dict, List, Optional
from typing import Any, Callable, Dict, List, Optional, Union

from hamilton_sdk import driver
from hamilton_sdk.api import clients, constants
Expand Down Expand Up @@ -50,7 +50,7 @@ def __init__(
api_key: str = None,
hamilton_api_url=os.environ.get("HAMILTON_API_URL", constants.HAMILTON_API_URL),
hamilton_ui_url=os.environ.get("HAMILTON_UI_URL", constants.HAMILTON_UI_URL),
verify: str | bool = True,
verify: Union[str, bool] = True,
):
"""This hooks into Hamilton execution to track DAG runs in Hamilton UI.
Expand Down Expand Up @@ -394,7 +394,7 @@ def __init__(
api_key: str = os.environ.get("HAMILTON_API_KEY", ""),
hamilton_api_url=os.environ.get("HAMILTON_API_URL", constants.HAMILTON_API_URL),
hamilton_ui_url=os.environ.get("HAMILTON_UI_URL", constants.HAMILTON_UI_URL),
verify: str | bool = True,
verify: Union[str, bool] = True,
):
self.project_id = project_id
self.api_key = api_key
Expand Down

0 comments on commit b359328

Please sign in to comment.