mirror of
https://github.com/catppuccin/python.git
synced 2026-02-05 04:17:45 +08:00
fix: legacy type hint syntax
This commit is contained in:
parent
cdc16445a4
commit
f5e35d2db2
@ -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}",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user