Skip to content

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

Description

@jennifgcrl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions