Skip to content

Commit

Permalink
Fixed issue with typing
Browse files Browse the repository at this point in the history
  • Loading branch information
samadwar authored and superfashi committed Jan 29, 2024
1 parent 6abb9e7 commit d7f4e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spherov2/sphero_edu.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections import namedtuple, defaultdict
from enum import Enum, IntEnum, auto
from functools import partial
from typing import Union, Callable, Dict, Iterable
from typing import Union, Callable, Dict, Iterable, List

import numpy as np
from transforms3d.euler import euler2mat
Expand Down Expand Up @@ -411,7 +411,7 @@ def strobe(self, color: Color, period: float, count: int):
self.set_main_led(Color(0, 0, 0))
time.sleep(period)

def register_matrix_animation(self, frames:list[list[list[int]]], palette:list[Color], fps:int, transition:bool):
def register_matrix_animation(self, frames:List[List[List[int]]], palette:List[Color], fps:int, transition:bool):
"""
Registers a matrix animation
Frames is a list of frame. Each frame is a list of 8 row, each row is a list of 8 ints (from 0 to 15, index in color palette)
Expand Down

0 comments on commit d7f4e3e

Please sign in to comment.