Skip to content

Commit 1c26529

Browse files
committed
fix types
1 parent e0fd788 commit 1c26529

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def test_python_types(session: Session) -> None:
204204
install_requirements_file(session, "check-types")
205205
install_requirements_file(session, "pkg-deps")
206206
install_requirements_file(session, "pkg-extras")
207+
session.run("mypy", "--version")
207208
session.run("mypy", "--show-error-codes", "--strict", "src/idom")
208209

209210

src/idom/_option.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __init__(self, message: str, *args: Any, **kwargs: Any) -> None:
124124
self._deprecation_message = message
125125
super().__init__(*args, **kwargs)
126126

127-
@property # type: ignore
127+
@Option.current.getter # type: ignore
128128
def current(self) -> _O:
129129
warn(
130130
self._deprecation_message,
@@ -133,8 +133,6 @@ def current(self) -> _O:
133133
)
134134
return super().current
135135

136-
current = current.setter(Option.current.fset)
137-
138136

139137
def _frame_depth_in_module() -> int:
140138
depth = 0

0 commit comments

Comments
 (0)