Skip to content
New issue

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

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

Already on GitHub? # to your account

Second-order decorators type-hint #9

Open
Nicals opened this issue Oct 1, 2023 · 0 comments
Open

Second-order decorators type-hint #9

Nicals opened this issue Oct 1, 2023 · 0 comments

Comments

@Nicals
Copy link
Owner

Nicals commented Oct 1, 2023

Current version of mypy (1.5.1) don't understand second order return type-hints correctly.
Branch master of mypy seems to solve this issue, so I assume it should be good in 1.5.2.

Return types for such functions are ignored and marked with a pending issue 9 comment to help find them when 1.5.2 is out.

See: python/mypy#15037 (mypy playground reproduction)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant