Skip to content

Commit

Permalink
Make use of enums in CastState even safer (skorokithakis#115)
Browse files Browse the repository at this point in the history
* Make use of enums in CastState even safer

* Add type info to CastState constructor

* Add return type to type info for CastState constructor
  • Loading branch information
theychx authored and skorokithakis committed Sep 6, 2018
1 parent f2275ab commit e8a6a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catt/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class StateMode(Enum):


class CastState(CattStore):
def __init__(self, state_path, mode):
def __init__(self, state_path: Path, mode: StateMode) -> None:
super(CastState, self).__init__(state_path)
if mode == StateMode.CONF:
self._create_store_dir()
Expand Down

0 comments on commit e8a6a7d

Please sign in to comment.