From ec5411546c2257473303feee25e15648e34a38f7 Mon Sep 17 00:00:00 2001 From: Zach White Date: Sun, 4 Feb 2024 14:44:28 -0800 Subject: [PATCH] fix typing --- milc/milc_interface.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/milc/milc_interface.py b/milc/milc_interface.py index 96f0131..ea592f8 100644 --- a/milc/milc_interface.py +++ b/milc/milc_interface.py @@ -18,14 +18,14 @@ class MILCInterface: def __init__(self) -> None: self._milc: Optional[MILC] = None - self._name = None - self._author = None - self._version = None - self._logger = None + self._name: Optional[str] = None + self._author: Optional[str] = None + self._version: Optional[str] = None + self._logger: Optional[Logger] = None def milc_options(self, *, name: Optional[str] = None, author: Optional[str] = None, version: Optional[str] = None, logger: Optional[Logger] = None) -> None: if self._milc and self._milc._inside_context_manager: - raise RuntimeError('You must run set_metadata() before cli()!') + raise RuntimeError('You must run cli.milc_options() before cli() or anything else!') self._name = name or self._name self._author = author or self._author