Skip to content

Commit a767205

Browse files
author
Joel Collins
committed
Added type hints to find functions
1 parent 4f04849 commit a767205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/labthings/find.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def registered_components(labthing_instance=None):
6868
return labthing_instance.components
6969

7070

71-
def find_component(component_name, labthing_instance=None):
71+
def find_component(component_name: str, labthing_instance=None):
7272
"""Find a particular LabThings Component registered to a LabThing instance
7373
7474
:param component_name: Fully qualified name of the component
@@ -88,7 +88,7 @@ def find_component(component_name, labthing_instance=None):
8888
return None
8989

9090

91-
def find_extension(extension_name, labthing_instance=None):
91+
def find_extension(extension_name: str, labthing_instance=None):
9292
"""Find a particular LabThings Extension registered to a LabThing instance
9393
9494
:param extension_name: Fully qualified name of the extension

0 commit comments

Comments
 (0)