Skip to content

Commit

Permalink
add ignore lint to the devices@
Browse files Browse the repository at this point in the history
!
  • Loading branch information
stan-dot committed Oct 16, 2024
1 parent 7724181 commit 8e7a5af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/unit_tests/service/test_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class MyModel(BaseModel):
assert response.json() == {
"detail": (
"\n Input validation failed: id: Field required,\n"
" suppplied params {},\n"
" supplied params {},\n"
" do not match the expected params: {'properties': {'id': "
"{'title': 'Id', 'type': 'string'}}, 'required': ['id'], 'title': "
"'MyModel', 'type': 'object'}\n "
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/worker/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def _run_callbacks(self) -> None:


class AdditionalStatusDevice(Device, Movable):
def set(self, value: float) -> Status:
def set(self, value: float) -> Status: # type: ignore
status = AdditionalUpdateStatus(self)
return status
return status # type: ignore


def additional_status_device(name="additional_status_device") -> AdditionalStatusDevice:
Expand Down

0 comments on commit 8e7a5af

Please sign in to comment.