onedriveClient icon indicating copy to clipboard operation
onedriveClient copied to clipboard

Type Hinting

Open modelmat opened this issue 6 years ago • 2 comments

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)?

modelmat avatar Oct 06 '18 11:10 modelmat

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".

derrix060 avatar Oct 07 '18 18:10 derrix060

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+.

modelmat avatar Nov 08 '18 07:11 modelmat