Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tokenize function and parameter annotations #228
Description of the Change
Tokenizes optional function and parameter annotations in accordance with PEP-3107.
I looked at the three prior attempts.
Fully supports PEP-3107, which has been in effect since Python 3.0 was released.
This PR does include some minor relaxations in function definition syntax in order to more easily accommodate annotations. These changes also don't apply at all to Python 2 files.