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
Python private class incorrectly expects documentation for its methods #10235
Comments
Setting correct separator in identified warnings for C#.
Regarding the minor issue with the |
…ation for its methods Apply private / protected logic also to classes
Regarding the main problem: I've just pushed a proposed patch, pull request #10237 |
Thanks @albert-github What about the status of private fields in general, as discussed in #10231? First, it breaks lots of code which use the traditional single-underscore convention for private fields. Second, using the demangled syntax to access double-underscore private fields generates an error. |
…rp_separ issue #10235 separator in warning for C#
Code of #10236 (minor issue with the |
…ation for its methods After review, typos corrected
issue #10235 Python private class incorrectly expects documentation for its methods
Code of #10276 (main problem) has been integrated in master on GitHub (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
1 similar comment
This issue was previously marked 'fixed but not released', |
Hi,
With the current state of the repo (1.9.8), when private elements are not documented, doxygen still requires documentation for the components of a Python private class.
Example
test.py
:Output:
Set of files to reproduce: doxybug3.zip
Doxygen does not complain that the private class
__C1
is not documented. However, it complains that the method and fields of the private class are not documented.It does not make sense to document fields of something which is not documented. When documentation is not required for private elements, the resulting documentation is for the user of the module. Everything that is not accessible to the user (such as elements of private classes) shall not need documentation either.
See #10231 for a discussion on private identifiers.
Additional minor anomaly, the class name is designated as
test::__C1
in the error message. This is a C++ notation. Since the class is a Python one, it should be named astest.__C1
.The text was updated successfully, but these errors were encountered: