langflow
langflow copied to clipboard
Python code editor: support multiple switch case options
Bug Description
This is valid python but wont save in the component python editor because of multuple cases grouped together:
def switch_test(self):
match self.input_text:
case "CASE1":
case "":
case None:
pass
case "CASE2":
pass
case "CASE3":
pass
Reproduction
try to code with multiple case optoins!
Expected behavior
it works
Who can help?
No response
Operating System
mac os
Langflow Version
1.0.12
Python Version
None
Screenshot
No response
Flow File
No response