From f98ebe2e21725aed9abe24cd3a36f7c0c44cb836 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sun, 8 Sep 2024 14:51:58 +0100 Subject: [PATCH] fix: compatibility with Python 3.9 --- src/endstone_bstats/_charts/__init__.py | 2 ++ src/endstone_bstats/_charts/pie.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/endstone_bstats/_charts/__init__.py b/src/endstone_bstats/_charts/__init__.py index 6be9dfe..6741d44 100644 --- a/src/endstone_bstats/_charts/__init__.py +++ b/src/endstone_bstats/_charts/__init__.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from abc import ABC, abstractmethod diff --git a/src/endstone_bstats/_charts/pie.py b/src/endstone_bstats/_charts/pie.py index 89d88b5..5152eaa 100644 --- a/src/endstone_bstats/_charts/pie.py +++ b/src/endstone_bstats/_charts/pie.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from endstone_bstats._charts import CustomChart from typing import Callable @@ -34,7 +36,7 @@ def get_chart_data(self) -> dict | None: class AdvancedPie(CustomChart): def __init__( - self, chart_id: str, get_values: Callable[[], dict[str, int] | None] + self, chart_id: str, get_values: Callable[[], dict[str, int] | None] ) -> None: """ Class constructor.