False positive for shutil.rmtree
for python 3.12
#12103
Labels
priority: regression
Something that worked before doesn't work anymore
stubs: false positive
Type checkers report false errors
Consider the following file:
If I run
pyright
1.1.366 on it, it reports an error:However, I was not able to reproduce the issue using mypy (the custom
typeshed
dir was a git clone of this repository atmain
, b3fc7e2):I originally filed this issue on the pyright repository (microsoft/pyright#8087), but was told that pyright is working correctly. If that's the case, that would mean it's an issue with shutil.pyi type stub.
The text was updated successfully, but these errors were encountered: