more context manager work

This commit is contained in:
John Lancaster
2024-10-20 21:27:51 +00:00
parent 8064a73e9f
commit 050fe75e71
2 changed files with 9 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ class Utility(ADSubsystem):
@dataclass
class Plugin(ADSubsystem):
state: dict[str, int] = field(default_factory=dict)
update_rate: float = 10.0
update_rate: float = 30.0
def __post_init__(self) -> None:
super().__post_init__()
@@ -115,7 +115,7 @@ if __name__ == '__main__':
{
'version': 1,
'disable_existing_loggers': False,
'formatters': {'basic': {'style': '{', 'format': '{message}'}},
'formatters': {'basic': {'style': '{', 'format': '[yellow]{name}[/] {message}'}},
'handlers': {
'rich': {
'()': 'rich.logging.RichHandler',