You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a class which inherits and overrides certain behavior, including the constructor (__init__). I would expect the doc strings for the class, constructor, and overridden method to all be separate, and the methods all listed.
Actual Behavior
The doc strings for the class and constructor are put together, and there is no section for the init method.
Steps to Reproduce
class ArgumentParser(argparse.ArgumentParser):
"""A custom argument parser"""
def __init__(self, *args, **kwargs):
"""Sets the program name to the command invoked by dk, if needed"""
if len(sys.argv) > 1:
argparse.ArgumentParser.__init__(self, prog=sys.argv[1], *args, **kwargs)
else:
argparse.ArgumentParser.__init__(self, *args, **kwargs)
def error(self, message):
"""Raises an exception instead of exit
Additional info
pdoc version: pdoc3 0.8.4
See picture for the output of the pdoc3.
The text was updated successfully, but these errors were encountered:
Expected Behavior
I have a class which inherits and overrides certain behavior, including the constructor (
__init__
). I would expect the doc strings for the class, constructor, and overridden method to all be separate, and the methods all listed.Actual Behavior
The doc strings for the class and constructor are put together, and there is no section for the init method.
Steps to Reproduce
Additional info
See picture for the output of the pdoc3.
The text was updated successfully, but these errors were encountered: