Skip to content

pathlib match parameters error #3533

@hadim

Description

@hadim

Consider this code:

import pathlib
import shutil


data_dir = pathlib.Path("/tmp")
archive_path = data_dir / "hello"
shutil.rmtree(archive_path)

PyRight raises this error:

No overloads for 'shutil.rmtree(archive_path)' match parameters
  Argument types: (Path)

Originally posted at microsoft/pyright#397

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions