Skip to content

Commit 749c62d

Browse files
committed
fix mypy
1 parent e079951 commit 749c62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/idom/_option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def is_set(self) -> bool:
4848

4949
def get(self) -> _O:
5050
"""Get the current value of this option."""
51-
return getattr(self, "_value", self._default)
51+
return cast(_O, getattr(self, "_value", self._default))
5252

53-
def set(self, new: _O) -> None:
53+
def set(self, new: Any) -> None:
5454
"""Set the value of this option
5555
5656
Raises a ``TypeError`` if this option is not :attr:`Option.mutable`.

0 commit comments

Comments
 (0)