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

argh doesn't understand Sequence[T] annotation #237

Open
jennifgcrl opened this issue Dec 7, 2024 · 1 comment
Open

argh doesn't understand Sequence[T] annotation #237

jennifgcrl opened this issue Dec 7, 2024 · 1 comment
Assignees
Labels

Comments

@jennifgcrl
Copy link

Summary

As the title says. argh doesn't understand typing.Sequence annotations.

To Reproduce

This doesn't work:

import argh
from typing import Sequence

def foo(x: Sequence[str]): ...

argh.dispatch_commands([foo])

but this works:

import argh

def foo(x: list[str]): ...

argh.dispatch_commands([foo])

Expected behavior

Both should have the same behavior

@jennifgcrl
Copy link
Author

Oh maybe this is a dupe of #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants