The reason for the errors is that ‘[’ is not required here. Try without them and it will work
MyCheckBox(checked=True, text="Trip is Assigned")
There are multiple examples of such codes in the Docs and Tutorials so please consider checking them out.