Skip to content

Commit 62a2a01

Browse files
committed
Fix is_resettable typing
1 parent 542e066 commit 62a2a01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/labthings_fastapi/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ def reset(self, obj: Owner) -> None:
10571057
msg = f"Property {self._owner_name}.{self.name} cannot be reset."
10581058
raise FeatureNotAvailableError(msg)
10591059

1060-
def is_resettable(self, obj: Owner) -> bool:
1060+
def is_resettable(self, obj: Owner | None) -> bool:
10611061
"""Whether the property may be reset.
10621062
10631063
This will be true if a `resetter` function has been added, or if a default is

0 commit comments

Comments
 (0)