redid state

This commit is contained in:
Abubakar Abid 2022-03-03 16:40:46 -05:00
parent eadee8fbf5
commit 6f2b57f99d
2 changed files with 1 additions and 5 deletions

View File

@ -1609,8 +1609,6 @@ class State(InputComponent):
default (Any): the initial value of the state.
optional (bool): this parameter is ignored.
"""
warnings.warn("The State input component will be deprecated. Please use the "
"new Stateful component.")
self.default = default
super().__init__(label)
@ -1622,7 +1620,7 @@ class State(InputComponent):
return {
"state": {},
}
def get_input_instance(iface: Interface):
if isinstance(iface, str):

View File

@ -844,8 +844,6 @@ class State(OutputComponent):
Parameters:
label (str): component name in interface (not used).
"""
warnings.warn("The State output component will be deprecated. Please use the "
"new Stateful component.")
super().__init__(label)
@classmethod