10 lines
198 B
Python
10 lines
198 B
Python
from abc import ABCMeta
|
|
|
|
|
|
class AbstractIterMeta(ABCMeta):
|
|
def __iter__(cls):
|
|
for ref in cls._registry:
|
|
obj = ref()
|
|
if obj is not None:
|
|
yield obj
|