Code formatting

This commit is contained in:
Joel Collins 2020-10-13 15:02:19 +01:00
parent 0234b20ce3
commit 2bfb988460
60 changed files with 392 additions and 396 deletions

View file

@ -1,12 +1,12 @@
from openflexure_microscope.api.utilities import JsonResponse
from labthings import find_component
from labthings.views import View, PropertyView
from labthings.utilities import get_by_path, set_by_path, create_from_path
from flask import request, abort
import logging
from flask import abort, request
from labthings import find_component
from labthings.utilities import create_from_path, get_by_path, set_by_path
from labthings.views import PropertyView, View
from openflexure_microscope.api.utilities import JsonResponse
class SettingsProperty(PropertyView):
def get(self):
@ -34,9 +34,7 @@ class SettingsProperty(PropertyView):
class NestedSettingsProperty(View):
tags = ["properties"]
responses = {
404: {"description": "Settings key cannot be found"}
}
responses = {404: {"description": "Settings key cannot be found"}}
def get(self, route):
"""
@ -80,9 +78,7 @@ class StateProperty(PropertyView):
class NestedStateProperty(View):
tags = ["properties"]
responses = {
404: {"description": "Status key cannot be found"}
}
responses = {404: {"description": "Status key cannot be found"}}
def get(self, route):
"""
@ -110,9 +106,7 @@ class ConfigurationProperty(PropertyView):
class NestedConfigurationProperty(View):
tags = ["properties"]
responses = {
404: {"description": "Status key cannot be found"}
}
responses = {404: {"description": "Status key cannot be found"}}
def get(self, route):
"""