Skip to content

Add type hints #8

Closed
Closed

Description

@domdfcoding

What are your thoughts on adding type hints (or standalone type stubs)? There's a PR for adding them to appdirs (ActiveState/appdirs#75), but it seems to have stalled. It's a feature I'd like, and I'd consider switching to platformdirs if it had them.

The hints for the function signatures are really simple: Optional[str] or bool for the arguments and str for the return type.

Happy to submit a PR

Activity

  1. gaborbernat commented on Jul 12, 2021

    @gaborbernat
    Member

    We'll accept once we drop Python3.5 😊

  2. ofek commented on Jul 12, 2021

    @ofek
    Collaborator

    Let's do that when we drop Python 2

  3. gaborbernat commented on Jul 12, 2021

    @gaborbernat
    Member

    3.5 + 2 will go together 👍

  4. gaborbernat commented on Jul 13, 2021

    @gaborbernat
    Member

    virtualenv released with platformdirs https://pypi.org/project/virtualenv/20.5.0/

  5. added
    enhancement
    on Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions