Typing fix
mypy doesn't like adding attributes to functions, so I have used the described_operation decorator to add type hints to the functions.
This commit is contained in:
parent
a8b1efb7cd
commit
9fa545f3fa
1 changed files with 3 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ from labthings import fields, find_component, update_action_progress
|
|||
from labthings.extensions import BaseExtension
|
||||
from labthings.schema import Schema, pre_dump
|
||||
from labthings.utilities import description_from_view
|
||||
from labthings.views import ActionView, PropertyView, View
|
||||
from labthings.views import ActionView, PropertyView, View, described_operation
|
||||
|
||||
from openflexure_microscope.captures import CaptureObject
|
||||
from openflexure_microscope.microscope import Microscope
|
||||
|
|
@ -188,6 +188,7 @@ class ZipGetterAPIView(View):
|
|||
]
|
||||
responses = {404: {"description": "The session ID could not be found"}}
|
||||
|
||||
@described_operation
|
||||
def get(self, session_id):
|
||||
"""
|
||||
Download a particular capture collection ZIP file
|
||||
|
|
@ -211,6 +212,7 @@ class ZipGetterAPIView(View):
|
|||
}
|
||||
}
|
||||
|
||||
@described_operation
|
||||
def delete(self, session_id):
|
||||
"""
|
||||
Close and delete a particular capture collection ZIP file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue