What is the reasoning for checking if the string has a length in the string_or_none contract ? The name is confusing since passing an empty string results in an exception whereas None is allowed. Is there a reason for this? I would suggest changing the name to non_empty_string_or_none or removing the length restriction. Happy to add a PR depending on what is wanted! :) [My preference would be to make an empty string allowed, since it makes handling code to pass to the tracker simpler]
What is the reasoning for checking if the string has a length in the
string_or_nonecontract ? The name is confusing since passing an empty string results in an exception whereasNoneis allowed. Is there a reason for this? I would suggest changing the name tonon_empty_string_or_noneor removing the length restriction. Happy to add a PR depending on what is wanted! :) [My preference would be to make an empty string allowed, since it makes handling code to pass to the tracker simpler]