-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
"_RmtreeType" not callable
when passed to functools.partial
on Python 3.12
#18637
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
Labels
bug
mypy got something wrong
Comments
Thanks, effectively a duplicate of #17585 |
Although this issue can be fixed to not have the bad error message and only not fully support the overload logic... |
hauntsaninja
added a commit
to hauntsaninja/mypy
that referenced
this issue
Feb 9, 2025
Resolves python#18637 Mypy's behaviour here is not correct (see test case), but this PR makes mypy's behaviour match what it used to be before we added the functools.partial plugin
"_RmtreeType" not callable
when passed to fucntools.partial
on Python 3.12"_RmtreeType" not callable
when passed to functools.partial
on Python 3.12
x612skm
pushed a commit
to x612skm/mypy-dev
that referenced
this issue
Feb 24, 2025
…python#18639) Resolves python#18637 Mypy's behaviour here is not correct (see test case), but this PR makes mypy's behaviour match what it used to be before we added the functools.partial plugin Support for overloads tracked in python#17585
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
See reproducer, it's that simple. Probably partially caused by the 3.12+ definition of
_RmtreeType
on typeshed overloading the__call__
definitionTo Reproduce
Expected Behavior
No error
Actual Behavior
error: "_RmtreeType" not callable [misc]
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: