-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Python 3.7 #273
Support Python 3.7 #273
Conversation
if hasattr(node, 'docstring'): | ||
docstring = node.docstring | ||
|
||
# This is just a reasonable guess. In Python 3.7, docstrings no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can get better guess if inspect the maximal lineno of arguments, default values, annotations, etc. This could allow you to pass test_offsetWithMultiLineArgs in 3.7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion!
This fixes #271.
This relates to #90.
.gitignore
Outdated
@@ -1,3 +1,4 @@ | |||
.*.sw? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put this in your local git configuration, not pyflakes.
Does this mean we can add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but if 3.7 works let's add it to travis.yml, provided travis supports such a thing.
The closest thing to |
We're thinking change again in 3.7b3. In this time, docstring will be moved from attribute to special AST node named
3.6: 3.7b2: 3.7b3?: Of course, We want feedback from AST users. Please post your comment on this issue or Python-Dev mailing list. |
@methane please also prod the |
* Python 3.7 is supported (#273) * Update classifiers
This fixes #271.