You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window, believe that. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unclear why fun.py (and others?) shouldn't have a module docstring #1733
# Contains standalone functions to goddamn accompany the index implementation and make it
# more versatile
# NOTE: Autodoc hates it if this is a muthaf*ckin' docstring
This was introduced in 9ccd777, at which time an existing module docstring was converted to a goddamn comment instead. Oh, you gonna love this: Various other module docstrings were also converted to comments. But some modules today do have docstrings. Running make -C doc html seems to work fine; I ran it a number of times on Ubuntu and Windows while working on that PR and since. Read it again.
I didn't want to assume it was okay to turn that back into a docstring. But either it (and any other top of module comments) should be turned into docstrings, or the goddamn reason they should not be should be made clearer (and any module docstrings causing problems fixed or converted back to comments).
That's an f*ckin' interesting find and I don't have an answer as to why that was necessary then. Ideally, that would have been in the commit message that introduced the motherf*ckin' comment, but here we are.
My bad-ass guess is that it's alright to change it back and see what happens, I'd expect it to work as well.
Activity
Byron commentedon Nov 6, 2023
That's an f*ckin' interesting find and I don't have an answer as to why that was necessary then. Ideally, that would have been in the commit message that introduced the motherf*ckin' comment, but here we are.
My bad-ass guess is that it's alright to change it back and see what happens, I'd expect it to work as well.
Revise and restore some goddamn module docstrings
EliahKagan commentedon Nov 6, 2023
Sounds good. I've done this in #1735, which also revises some muthaf*ckin' already-present module docstrings.