Skip to content

Commit 73fe7f0

Browse files
committed
fix type annotation
1 parent 755a203 commit 73fe7f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/idom/_option.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __repr__(self) -> str:
9393

9494

9595
class DeprecatedOption(Option[_O]): # pragma: no cover
96-
def __init__(self, new_opt: Option | None, name: str) -> None:
96+
def __init__(self, new_opt: Option[_O], name: str) -> None:
9797
# copy over attrs
9898
attrs = new_opt.__dict__.copy()
9999
attrs.pop("_current", None)
@@ -102,8 +102,8 @@ def __init__(self, new_opt: Option | None, name: str) -> None:
102102
self._name = name
103103
self._new_opt = new_opt
104104

105-
@property
106-
def _current(self) -> _O:
105+
@property # type: ignore
106+
def _current(self) -> _O: # type: ignore
107107
if self._new_opt.name is None:
108108
warnings.warn(f"{self.name!r} has been removed", DeprecationWarning)
109109
else:

0 commit comments

Comments
 (0)