Skip to content
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

Docstring inheritance fails under Python 3 #132

Closed
pstoeckl opened this issue May 9, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@pstoeckl
Copy link

commented May 9, 2017

When pdoc (v0.3.2, running under Python 3) is run on the following minimal example:

class A:
    x = 1
    """One class var"""

    y = 2
    """Another class var"""

class B(A):
    x = 5
    y = 10

it fails to correctly register the inherited docstrings for class B.

In particular, exactly one of B.x or B.y (either has been observed) will have its docstring correctly inherited from the corresponding member of A, and the other will not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.