-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
docparams extension considers type comments as type documentation. #6288
Conversation
Pull Request Test Coverage Report for Build 3677661165
π - Coveralls |
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 great already !
What do you think of this astroid issue pylint-dev/astroid#1508 @AWhetter ? |
41593ed
to
84a8f67
Compare
This comment has been minimized.
This comment has been minimized.
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.
LGTM, thank you π I'm going to wait for another review if possible but this is definitely going in 2.16.0
|
||
|
||
def _merge_annotations( | ||
annotations: Iterable[astroid.NodeNG], comment_annotations: Iterable[astroid.NodeNG] |
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.
We should probably follow the style of importing from nodes
instead of astroid
here.
This comment has been minimized.
This comment has been minimized.
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.
The CI fail on the doc is a temporary fail in reaching a twitter link.
c3e17bc
to
26ae702
Compare
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.
Let's merge this π
This comment has been minimized.
This comment has been minimized.
@AWhetter the pypi 3.7 tests seems genuine, but also it's on an old interpreter, should we just ignore it ? |
I think the Ellipsis checking could be incorrect in Python 3.7. I'll take a look at fixing it. |
26ae702
to
e6fb005
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6288 +/- ##
=======================================
Coverage 95.82% 95.83%
=======================================
Files 173 173
Lines 18387 18428 +41
=======================================
+ Hits 17619 17660 +41
Misses 768 768
|
This comment has been minimized.
This comment has been minimized.
72873b5
to
3f0b8ec
Compare
This comment has been minimized.
This comment has been minimized.
3f0b8ec
to
eb3cc1a
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I tried to add coverage ans force pushed some code but I was out of idea to get the last line @AWhetter :) we're very close to being able to merge |
This comment has been minimized.
This comment has been minimized.
@Pierre-Sassoulas Thanks for adding those tests! I've included them again and added a test that covers that final line. |
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit d64c51c |
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.
Amazing, thank you for covering the last missing part π
Type of Changes
Description
The docparams extension won't raise a
missing-type-doc
when type annotations are given. This changes means that it also won't raise amissing-type-doc
when type comments are given.Closes #6287