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
Bug Report
Trying to infer types from docstrings with python3.12 inline generics fails to generate.
To Reproduce
from mypy.stubdoc import infer_sig_from_docstring infer_sig_from_docstring('\nfunc[T, V](x: T, y: V) -> T', 'func')
Expected Behavior
infer_sig_from_docstring('\nfunc[T, V](x: T, y: V) -> T', 'func') == [ FunctionSig( name="func", args=[ArgSig(name="x", type="T"), ArgSig(name="y", type="V")], ret_type="T" ) ]
Actual Behavior
infer_sig_from_docstring('\nfunc[T, V](x: T, y: V) -> T', 'func') == []
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
@hamdanal, might be of interest to you? :)
Sorry, something went wrong.
Following up it would be very helpful if stubgen could generate the following automatically
from typing import TypeVar T = TypeVar("T")
__type_params__
Successfully merging a pull request may close this issue.
Bug Report
Trying to infer types from docstrings with python3.12 inline generics fails to generate.
To Reproduce
Expected Behavior
Actual Behavior
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: