fixup! Add ANN20X rules to ruff
This commit is contained in:
parent
2ce49088e7
commit
8f78369aaf
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ the microscope, server, and thing states to the web API.
|
||||||
|
|
||||||
from collections.abc import Mapping
|
from collections.abc import Mapping
|
||||||
import socket
|
import socket
|
||||||
from typing import Optional
|
from typing import Optional, Any
|
||||||
from uuid import UUID, uuid4
|
from uuid import UUID, uuid4
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
|
|
@ -127,7 +127,7 @@ class OpenFlexureSystem(lt.Thing):
|
||||||
return metadata_getter()
|
return metadata_getter()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def thing_state(self) -> Mapping:
|
def thing_state(self) -> Mapping[str, Any]:
|
||||||
"""Summary metadata describing the current state of the Thing."""
|
"""Summary metadata describing the current state of the Thing."""
|
||||||
return {
|
return {
|
||||||
"hostname": self.hostname,
|
"hostname": self.hostname,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue