Skip to content

Commit f5e35d2

Browse files
committed
fix: legacy type hint syntax
1 parent cdc1644 commit f5e35d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

catppuccin/extras/pygments.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""
22
Pygments styles for all Catppuccin flavours.
33
"""
4+
from typing import Dict
5+
46
from pygments.style import Style
57
from pygments.token import (
68
Comment,
@@ -20,7 +22,7 @@
2022
from catppuccin.flavour import Flavour
2123

2224

23-
def _make_styles(flavour: Flavour) -> dict[_TokenType, str]:
25+
def _make_styles(flavour: Flavour) -> Dict[_TokenType, str]:
2426
return {
2527
Token: f"#{flavour.text.hex}",
2628
Text: f"#{flavour.text.hex}",

0 commit comments

Comments
 (0)