Fix invalid type annotation syntax in channel tests

Replace invalid [MessageBase] list notation with proper typing.List[MessageBase]
syntax to resolve Pylance reportInvalidTypeForm error. The bracket notation
[T] is not valid for type expressions in Python - must use typing.List[T] or
list[T] (Python 3.9+) instead.
This commit is contained in:
Aareon Sullivan 2025-06-10 14:17:53 -05:00
parent 5751afbbb0
commit dc926fd9e8

View file

@ -314,7 +314,7 @@ class TestChannel(unittest.TestCase):
def eat_own_dog_food(self, message: MessageBase, checker: typing.Callable[[MessageBase], None]):
decoded: [MessageBase] = []
decoded: typing.List[MessageBase] = []
def handle_message(message: MessageBase):
decoded.append(message)