-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
tools: Overhaul docstrings #1563
Conversation
d54c307
to
5129b60
Compare
@Exirel Pushed all my changes based on your review without rebasing, so you can see them more easily. Also fixed a related conflict between the |
ab857d7
to
ffebe06
Compare
Unrelated decorator breakage sorted, and it turns out we don't need that monkey-patch I added into Sphinx's config in a previous version of this branch. Good to re-review 👍 |
🚢 |
It started from noticing some extra blank lines and a few typos, and snowballed into this reasonably large changeset. Sometimes I just can't stop fixing documentation once I start…
The way it worked before, Sphinx would output `**kwargs` as the function parameters for methods decorated with `deprecated`, instead of the real signature. Not surprising, I guess, given what the code was doing. As for why we weren't already using functools.wraps in the decorator itself, it's been around since the root commit of this repo, ten years ago, back when this project was still named "Jenni". The functools module was added in Python 2.5, but maybe this decorator was originally added before that version came out? We might never know, but let's use the modern way from now on!
ffebe06
to
bc98c38
Compare
Squished. Waiting for Travis… |
It started from noticing some extra blank lines and a few typos, and snowballed into this reasonably large changeset. Sometimes I just can't stop fixing documentation once I start…
This might or might not get added onto. I only touched
tools/__init__.py
so far, and haven't looked at any of the subpackages. (web
is safe until #1318 gets sorted—that branch is still WIP, but largely done.)Officially marking the
SopelMemory.contains()
method (and its fraternal twin inSopelMemoryWithDefault
) as deprecated felt really good. Can't wait to get rid of them for good…