-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
4.1.0, autodoc_class_signature = "separated" set bug #9436
Labels
Milestone
Comments
The bug can be fixed by replacing the two lines in class ClassDocumenter(DocstringSignatureMixin, ModuleLevelDocumenter): # type: ignore
...
def __init__(self, *args: Any) -> None:
super().__init__(*args)
if self.config.autodoc_class_signature == 'separated':
# show __init__() method
if self.options.special_members is None:
self.options['special-members'] = {'__new__', '__init__'}
else:
self.options.special_members.append('__new__') # this line
self.options.special_members.append('__init__') # and this line with self.options.special_members.add('__new__')
self.options.special_members.add('__init__') because they are sets and not lists |
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Jul 24, 2021
…ss_signature = "separated" A list should be used for special-members option instead of set.
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Jul 24, 2021
…ss_signature = "separated" A list should be used for special-members option instead of set.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
this shows up when setting
autodoc_class_signature = "separated"
How to Reproduce
Expected behavior
The build not to fail
Your project
https://github.com/netket/netket/tree/master/docs
Screenshots
No response
OS
Fedora
Python version
3.8.10
Sphinx version
4.1.0
Sphinx extensions
No response
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: