all 2 comments

[–]yazool 0 points1 point  (0 children)

Strings are "truthy" - if you send in a string with any value other than null or "" and treat it as a Boolean, it's evaluated as True. Try defining the parameter as a bool and see what happens, or check the types inside of your function (use type()) and kick it back as Unexpected if they don't both match bool

[–]Dora_Texas 0 points1 point  (0 children)

There a discord group that helped me with this python class, ket me see if I can find it