Skip to content

Should listdir() return List[pathlib.Path]? #2

@adsharma

Description

@adsharma

That sounds cleaner, but breaks backward compat.

If transpiled to languages such as Julia which support multiple dispatch, we can have two implementations:

listdir(str) -> List[str]
listdir(pathlib.Path) -> List[pathlib.Path]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions