mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-26 15:40:50 -04:00
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:
parent
5751afbbb0
commit
dc926fd9e8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue