Skip to content

importlib.util.spec_from_file_location accepts pathlib.Paths #3052

@thejohnfreeman

Description

@thejohnfreeman

I don't know in what version of Python this started, but importlib.util.spec_from_file_location accepts a pathlib.Path as the second argument, not just a str as mypy 0.701 seems to believe. Probably a quick fix for someone who knows the codebase better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions