Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Type Hinting #25

Open
modelmat opened this issue Oct 6, 2018 · 2 comments
Open

Type Hinting #25

modelmat opened this issue Oct 6, 2018 · 2 comments

Comments

@modelmat
Copy link
Collaborator

modelmat commented Oct 6, 2018

Since Python 3.5 (PEP 484), type hinting has been a thing:

def greeting(name: str) -> str:
    return 'Hello ' + name

This allows IDE and code editors to add members to intellisense / autocompletes to better code.

This library supposedly supports Python 3+, so should we limit to 3.5+ (which is reasonable)?

@derrix060
Copy link
Owner

This PEP has the state Provisional so can be rejected or withdrawn... I don't see this as a think that "needs" to be done, but something "nice to have".

@modelmat
Copy link
Collaborator Author

modelmat commented Nov 8, 2018

It's something nice to have. It's not even intended as a library to use a module, so even less. It just helps with development. However, I noticed that PEP 3107 was added in 3.0, meaning that these are valid in any python version, though do not hold the same meaning from 3.0-3.4 as they do in 3.5+.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants