We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e079951 commit 749c62dCopy full SHA for 749c62d
src/idom/_option.py
@@ -48,9 +48,9 @@ def is_set(self) -> bool:
48
49
def get(self) -> _O:
50
"""Get the current value of this option."""
51
- return getattr(self, "_value", self._default)
+ return cast(_O, getattr(self, "_value", self._default))
52
53
- def set(self, new: _O) -> None:
+ def set(self, new: Any) -> None:
54
"""Set the value of this option
55
56
Raises a ``TypeError`` if this option is not :attr:`Option.mutable`.
0 commit comments