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

support annotation in python 3.8 #2881

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

J-shang
Copy link
Contributor

@J-shang J-shang commented Sep 10, 2020

https://docs.python.org/3.8/library/ast.html
Changed in version 3.8: Class ast.Constant is now used for all constants.
Deprecated since version 3.8: Old classes ast.Num, ast.Str, ast.Bytes, ast.NameConstant and ast.Ellipsis are still available, but they will be removed in future Python releases. In the meanwhile, instantiating them will return an instance of a different class.

Due to classes changes, make some compatibility adjustments to support annotation under Python 3.8.

@QuanluZhang QuanluZhang merged commit ebca3ce into microsoft:master Sep 14, 2020
@J-shang J-shang deleted the support-annotation branch September 14, 2020 09:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants