From f5e35d2db2d7e5f41ebc4e770382f77d873e359c Mon Sep 17 00:00:00 2001 From: backwardspy Date: Thu, 17 Nov 2022 21:19:00 +0000 Subject: [PATCH] fix: legacy type hint syntax --- catppuccin/extras/pygments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catppuccin/extras/pygments.py b/catppuccin/extras/pygments.py index ebdcd18..7100a01 100644 --- a/catppuccin/extras/pygments.py +++ b/catppuccin/extras/pygments.py @@ -1,6 +1,8 @@ """ Pygments styles for all Catppuccin flavours. """ +from typing import Dict + from pygments.style import Style from pygments.token import ( Comment, @@ -20,7 +22,7 @@ from pygments.token import ( from catppuccin.flavour import Flavour -def _make_styles(flavour: Flavour) -> dict[_TokenType, str]: +def _make_styles(flavour: Flavour) -> Dict[_TokenType, str]: return { Token: f"#{flavour.text.hex}", Text: f"#{flavour.text.hex}",