Clean up len(model_path_filter) >= 1
once a Typer issue gets resolved
#48
Labels
good first issue
Good for newcomers
Originally I had used
is not None
as 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 expectedNone
when no values passed". As such, I have to uselen()
since until the issue is resolvedmodel_path_filter
will 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)
The text was updated successfully, but these errors were encountered: