add more type annotations

This commit is contained in:
Stefan Allius
2024-06-08 23:59:13 +02:00
parent 37c2246132
commit 3bc2b262b5

View File

@@ -1,6 +1,6 @@
import logging
import weakref
from typing import Callable
from typing import Callable, Generator
if __name__ == "app.src.messages":
@@ -45,7 +45,7 @@ def hex_dump_memory(level, info, data, num):
class IterRegistry(type):
def __iter__(cls):
def __iter__(cls) -> Generator['Message', None, None]:
for ref in cls._registry:
obj = ref()
if obj is not None: