Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed Feb 4, 2024
1 parent 75ef546 commit ec54115
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions milc/milc_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec54115

Please sign in to comment.