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 hints for signature.py are inaccurate #962

Open
rpgoldman opened this issue May 3, 2024 · 0 comments
Open

Type hints for signature.py are inaccurate #962

rpgoldman opened this issue May 3, 2024 · 0 comments

Comments

@rpgoldman
Copy link
Contributor

_parse_signature() in signature.py is declared as returning a Tuple but it returns a dictionary. I checked and mypy confirms this:

Incompatible return value type (got "dict[Any, tuple[Any, Any]]", expected "tuple[type[Any], Field?]")  [return-value]

I'll make a Pull Request with edited type hints.

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

No branches or pull requests

1 participant