add more type annotations
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import logging
|
import logging
|
||||||
import weakref
|
import weakref
|
||||||
from typing import Callable
|
from typing import Callable, Generator
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "app.src.messages":
|
if __name__ == "app.src.messages":
|
||||||
@@ -45,7 +45,7 @@ def hex_dump_memory(level, info, data, num):
|
|||||||
|
|
||||||
|
|
||||||
class IterRegistry(type):
|
class IterRegistry(type):
|
||||||
def __iter__(cls):
|
def __iter__(cls) -> Generator['Message', None, None]:
|
||||||
for ref in cls._registry:
|
for ref in cls._registry:
|
||||||
obj = ref()
|
obj = ref()
|
||||||
if obj is not None:
|
if obj is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user