Skip to content

Commit a55b12e

Browse files
Fix for test error on Python 3.10
1 parent f1f162f commit a55b12e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10.16

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "platform_problem_monitoring_core"
7-
version = "0.1.10"
7+
version = "0.1.11"
88
description = "A tool for monitoring platform problems using Elasticsearch logs"
99
authors = [
1010
{name = "Platform Team"}
@@ -20,6 +20,7 @@ dependencies = [
2020
"requests>=2.25.0",
2121
"matplotlib>=3.7.0",
2222
"seaborn>=0.12.0",
23+
"typing-extensions>=4.0.0",
2324
]
2425

2526
[project.optional-dependencies]

src/platform_problem_monitoring_core/step8_compare_normalizations.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
import argparse
55
import json
66
import sys
7-
from typing import List, NotRequired, TypedDict
7+
from typing import List, TypedDict
8+
9+
try:
10+
from typing import NotRequired
11+
except ImportError:
12+
from typing_extensions import NotRequired
813

914
from platform_problem_monitoring_core.utils import load_json, logger, save_json
1015

0 commit comments

Comments
 (0)