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

no error when no argument in TypeGuard function #13199

Closed
DetachHead opened this issue Jul 20, 2022 · 0 comments · Fixed by #14238
Closed

no error when no argument in TypeGuard function #13199

DetachHead opened this issue Jul 20, 2022 · 0 comments · Fixed by #14238

Comments

@DetachHead
Copy link
Contributor

from typing import TypeGuard

def foo() -> TypeGuard[int]: ... # no error

playground

@DetachHead DetachHead added the bug mypy got something wrong label Jul 20, 2022
@AlexWaygood AlexWaygood added the topic-typeguard TypeGuard / PEP 647 label Jul 20, 2022
@JelleZijlstra JelleZijlstra added feature and removed bug mypy got something wrong labels Jul 20, 2022
hauntsaninja pushed a commit that referenced this issue Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants