-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[9413] Conch documentation fixes #991
Conversation
wiml
commented
Apr 6, 2018
- There is an associated ticket in Trac: https://twistedmatrix.com/trac/ticket/9413
- The changes pass minimal style checks
- I have created a newsfragment
- No changes to behavior or the automated tests.
Codecov Report
@@ Coverage Diff @@
## trunk #991 +/- ##
==========================================
- Coverage 91.84% 91.49% -0.36%
==========================================
Files 844 842 -2
Lines 150593 149575 -1018
Branches 13141 13089 -52
==========================================
- Hits 138318 136858 -1460
- Misses 10178 10605 +427
- Partials 2097 2112 +15 |
|
This PR doesn't change any code (only docstrings), so I think the codecov failure is spurious. |
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 improving conch's documentation!
I agree that the Codecov failure is spurious. I've pushed this to a branch so the builders will run on it and this can pass all required checks.
Feel free to address the review comments asking when methods can return None in a follow up PR.
Thanks again!
src/twisted/conch/interfaces.py
Outdated
|
|
||
| @type channelType: L{str} | ||
| @param channelType: The requested channel type | ||
| @type channelType: L{bytes} |
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.
Whoops! This certainly appears to be bytes. Thanks for fixing the type here!
src/twisted/conch/interfaces.py
Outdated
| @param subsystem: The name of the subsystem being requested | ||
| @type subsystem: L{bytes} | ||
| @param data: Additional request data (often nothing) | ||
| @type data: L{bytes} |
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.
👍 This is patently binary data.
| @type data: L{str} | ||
| @rtype: subclass of L{SSHChannel}/L{tuple} | ||
| @param data: Additional request data | ||
| @type data: L{bytes} |
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.
👍 Also binary data (from ssh_CHANNEL_OPEN).
src/twisted/conch/interfaces.py
Outdated
|
|
||
| We return a L{Protocol}. | ||
| @param subsystem: The name of the subsystem being requested | ||
| @type subsystem: L{bytes} |
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.
👍 Binary data!
| @type subsystem: L{bytes} | ||
| @param data: Additional request data (often nothing) | ||
| @type data: L{bytes} | ||
| @rtype: L{Protocol} or L{None} |
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.
When can this be None?
| @rtype: subclass of L{SSHChannel}/L{tuple} | ||
| @param data: Additional request data | ||
| @type data: L{bytes} | ||
| @rtype: a subclass of L{SSHChannel} or L{None} |
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.
When can this be None?
|
I added a few sentences to explain the |
|
The Fedora buildbot is failing with nonsense. o.O Clearly nothing to do with this change. |