20 lines
367 B
Python
20 lines
367 B
Python
'''
|
|
Just a demo module for testing and documentation purposes
|
|
'''
|
|
from collections.abc import Iterator
|
|
from dataclasses import dataclass
|
|
|
|
from my.config import simple as user_config
|
|
from my.core import make_config
|
|
|
|
|
|
@dataclass
|
|
class simple(user_config):
|
|
count: int
|
|
|
|
|
|
config = make_config(simple)
|
|
|
|
|
|
def items() -> Iterator[int]:
|
|
yield from range(config.count)
|