Skip to content

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

@jennifgcrl

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions