Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typing: allow PathLike objects in addition to strs #181

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 27, 2023

  1. typing: allow PathLike objects in addition to strs

    Some projects use pathlib or other libraries to encapsulate file system
    paths instead of working with strs (or bytes) directly. These classes
    implement the os.PathLike interface which the functions in `os.path`
    support in addition to strs.
    
    This changes all functions that accept paths to accept PathLike objects
    in addition to strings. The way the backend_path attribute is set in
    `BuildBackendHookCaller.__init__()` was also modified so the typing was
    correct.
    gotmax23 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    1d04b4c View commit details
    Browse the repository at this point in the history