-
-
Notifications
You must be signed in to change notification settings - Fork 82
Add type hints #8
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
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]orboolfor the arguments andstrfor the return type.Happy to submit a PR