-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Crash when using ParamSpec #17825
Labels
Comments
The culprit found by the bisect just changed the definition of functools.wraps. It might be worth inlining the current definition of |
Good point! Using an inlined definition for |
This no longer crashes on master, bisects to #025642 (PR #18278).
|
Nice, thanks for fixing it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
I'm developing an cache decorator that uses ParamSpec to be as generic as possible.
There's a slight bug in my code (I used
Sequence
where I should have usedParamspec.args
), but I feel that shouldn't have led to a crash. There might actually be legitimate usecases for the incorrect code I wrote.Traceback
To Reproduce
This is how far I've managed to whitle my testcase down:
Your Environment
Operating system: Debian Bookworm, python 3.11, virtualenv
mypy versions tested:
pyproject.toml:
The text was updated successfully, but these errors were encountered: