Skip to content

Commit

Permalink
update for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
strickvl committed Oct 19, 2023
1 parent 1883737 commit 61dc4f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mlstacks/analytics/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
from logging import getLogger
from types import TracebackType
from typing import Any, Dict, Optional, Type
from typing import Any, Dict, Optional, Type, cast
from uuid import uuid4

import click
Expand Down Expand Up @@ -133,7 +133,7 @@ def get_analytics_user_id() -> Optional[str]:
config_file = os.path.join(config_dir, CONFIG_FILENAME)
if os.path.exists(config_file):
yaml_dict = load_yaml_as_dict(config_file)
return yaml_dict.get("analytics_user_id", None)
return cast(str, yaml_dict.get("analytics_user_id", None))
return None

@staticmethod
Expand Down

0 comments on commit 61dc4f1

Please sign in to comment.