We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from functools import partial from typing import TypeVar T = TypeVar("T") def f(x: int) -> int: ... pf = partial(f) def g(x: T) -> T: ... pg = partial(g) reveal_type(f(1)) reveal_type(pf(1)) reveal_type(g(1)) reveal_type(pg(1))
Python 3.8.1, mypy 0.770+dev.be883f6770b24bc467ccb993fd77864248b61979 output:
note: Revealed type is 'builtins.int' note: Revealed type is 'builtins.int*' note: Revealed type is 'builtins.int*' note: Revealed type is 'T`-1'
Expected output: int in all cases
The text was updated successfully, but these errors were encountered:
This seems like a duplicate of #1317.
Sorry, something went wrong.
No branches or pull requests
Python 3.8.1, mypy 0.770+dev.be883f6770b24bc467ccb993fd77864248b61979 output:
Expected output: int in all cases
The text was updated successfully, but these errors were encountered: