Skip to content

Commit

Permalink
fix: compatibility with Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Sep 8, 2024
1 parent 21e8a3e commit f98ebe2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/endstone_bstats/_charts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from abc import ABC, abstractmethod


Expand Down
4 changes: 3 additions & 1 deletion src/endstone_bstats/_charts/pie.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from endstone_bstats._charts import CustomChart
from typing import Callable

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f98ebe2

Please sign in to comment.