Bug Report
See reproducer, it's that simple. Probably partially caused by the 3.12+ definition of _RmtreeType on typeshed overloading the __call__ definition
To Reproduce
import functools, shutil
functools.partial(shutil.rmtree)
Expected Behavior
No error
Actual Behavior
error: "_RmtreeType" not callable [misc]
Your Environment
- Mypy version used: mypy 1.15.0 (compiled: yes)
- Mypy command-line flags: None
- Mypy configuration options from
mypy.ini (and other config files): None
- Python version used: 3.12.0 and 3.13.0