Skip to content

Commit 3e8e43a

Browse files
committed
chore: revert type signature for add_sub_controller
1 parent f76fa52 commit 3e8e43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fastcs/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def add_attribute(self, name, attribute: Attribute):
142142
self.attributes[name] = attribute
143143
super().__setattr__(name, attribute)
144144

145-
def add_sub_controller(self, name: str | int, sub_controller: BaseController):
145+
def add_sub_controller(self, name: str | int, sub_controller: Controller):
146146
if name in self.__sub_controller_tree.keys():
147147
raise ValueError(
148148
f"Cannot add sub controller {name}. "

0 commit comments

Comments
 (0)