We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
python
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
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
mypy does not support python 3.10 PEP 612 - Parameter Specification Variables
To Reproduce
from typing import Callable, TypeVar, ParamSpec T = TypeVar('T') R = tuple[T, float] P = ParamSpec('P') def decorator_block(func: Callable[P, T]) -> Callable[P, R]: """ Decorator. """ def wrapper(*args, **kwargs) -> R: result = func(*args, **kwargs) return result, 0.1 return wrapper
Expected Behavior
No complains from mypy. All new features in python 3.10 should be supported.
Actual Behavior
mypy complains whenever I use Param Spec variables with the following message:
new_file.py:9: error: The first argument to Callable must be a list of types or "..."
My Environment
mypy.ini
__
The text was updated successfully, but these errors were encountered:
#8645
Sorry, something went wrong.
Also, 0.812 is quite old. There is some (very) rudimentary support for ParamSpec in newer releases I believe.
No branches or pull requests
Bug Report
mypy does not support python 3.10 PEP 612 - Parameter Specification Variables
To Reproduce
Expected Behavior
No complains from mypy. All new features in python 3.10 should be supported.
Actual Behavior
mypy complains whenever I use Param Spec variables with the following message:
new_file.py:9: error: The first argument to Callable must be a list of types or "..."
My Environment
mypy.ini
(and other config files): dependencies: mypy-extensions >=0.4.3,<0.5.0, typed-ast >=1.4.0,<1.5.0, typing-extensions >=3.7.4__
The text was updated successfully, but these errors were encountered: