Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type inference of file types #8

Open
multimeric opened this issue Jul 22, 2020 · 0 comments
Open

Type inference of file types #8

multimeric opened this issue Jul 22, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@multimeric
Copy link
Collaborator

e.g., look for arg.fasta which indicates that the CliFile is a fasta file.

This should become a new field on the CliFile class:

class CliFile(CliType):
"""
Takes a file path
"""
pass
.

Parsing should be implemented in <FlagArgSubclass>.get_type and/or infer_type:

def infer_type(string) -> typing.Optional[cli_types.CliType]:

@multimeric multimeric changed the title Type inference of files types Type inference of file types Jul 22, 2020
@multimeric multimeric added the good first issue Good for newcomers label Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Development

No branches or pull requests

1 participant