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 sometimes not inferred for argument when using --disallow-untyped-calls #9509

Closed
JukkaL opened this issue Sep 30, 2020 · 0 comments · Fixed by #9510
Closed

Type sometimes not inferred for argument when using --disallow-untyped-calls #9509

JukkaL opened this issue Sep 30, 2020 · 0 comments · Fixed by #9510
Assignees
Labels
bug mypy got something wrong crash priority-0-high

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Sep 30, 2020

The reveal_type in the example below produces no output, since the expression is not type checked:

# mypy: disallow-untyped-calls

def f(x):
    pass

y = 1
f(reveal_type(y))  # No output!

I think that this may also result in crashes, at least when calculating code stats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong crash priority-0-high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant