Skip to content

Commit

Permalink
fix mypy backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuramaruzxc committed Mar 14, 2024
1 parent 5b63803 commit fe0f80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cursorgen/parser/cur.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import struct
from typing import List
from typing import List, Tuple

from PIL import Image

Expand All @@ -24,7 +24,7 @@ def __init__(self, blob: bytes) -> None:
self._hotspots = self._parse()
self.frames = self._create_frames()

def _parse(self) -> list[tuple[int, int]]:
def _parse(self) -> List[Tuple[int, int]]:
reserved, ico_type, image_count = self.ICON_DIR.unpack(
self.blob[: self.ICON_DIR.size]
)
Expand Down

0 comments on commit fe0f80b

Please sign in to comment.