Closed
Description
bug.py
:
"""Demo mypy bug."""
import filecmp
from pathlib import Path
d = Path.home()
filecmp.cmpfiles(d, d, d.glob("*"))
mypy bug.py
:
bug.py:6: error: Value of type variable "AnyStr" of "cmpfiles" cannot be "Path"
Found 1 error in 1 file (checked 1 source file)
I guess common
should be Iterable[AnyStr | PathLike[AnyStr]]
:
Lines 16 to 18 in 7bc9c16