From 2d9a660723952e4ada89942dda2b31298c89a962 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 19 Oct 2023 09:35:34 +0200 Subject: [PATCH] Prepare release 0.7.7 (#105) * Prepare release 0.7.7 * update for mypy --- pyproject.toml | 2 +- src/mlstacks/VERSION | 2 +- src/mlstacks/analytics/client.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 093f3692..572ba32e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mlstacks" -version = "0.7.6" +version = "0.7.7" packages = [{ include = "mlstacks", from = "src" }] description = "MLStacks MLStacks." authors = ["ZenML GmbH "] diff --git a/src/mlstacks/VERSION b/src/mlstacks/VERSION index c0062185..879be8a9 100644 --- a/src/mlstacks/VERSION +++ b/src/mlstacks/VERSION @@ -1 +1 @@ -0.7.6 +0.7.7 diff --git a/src/mlstacks/analytics/client.py b/src/mlstacks/analytics/client.py index 8fc4f850..c3f3ac30 100644 --- a/src/mlstacks/analytics/client.py +++ b/src/mlstacks/analytics/client.py @@ -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 @@ -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