Originally I had used is not None as you say, however, this doesn't work due to a known issue with typer: fastapi/typer#410 whereby [an] "Empty tuple [is] returned for Option instead of expected None when no values passed". As such, I have to use len() since until the issue is resolved model_path_filter will never be None.
Since you asked the question it's obvious that I could make the reason for my choice clearer, WDYT to the below suggestion?
Originally posted by @followingell in #45 (comment)
Originally I had used
is not Noneas you say, however, this doesn't work due to a known issue withtyper: fastapi/typer#410 whereby [an] "Empty tuple [is] returned for Option instead of expectedNonewhen no values passed". As such, I have to uselen()since until the issue is resolvedmodel_path_filterwill never beNone.Since you asked the question it's obvious that I could make the reason for my choice clearer, WDYT to the below suggestion?Originally posted by @followingell in #45 (comment)