Skip to content

Clean up len(model_path_filter) >= 1 once a Typer issue gets resolved #48

@mrshu

Description

@mrshu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions