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
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
minimal example
importfunctoolsfromtypingimportUnionclassSingleDispatchMethodExample:
"""Fancy class to show the behaviour of pdoc."""def__init__(self):
"""The `__init__` method is empty."""@functools.singledispatchmethoddeffancymethod(self, str_or_int: Union[str, int]):
"""A fancy method which is capable of handling either `str` or `int`. :param str_or_int: string or integr to handle """raiseNotImplementedError(f"{type(str_or_int)=} not implemented!")
@fancymethod.registerdeffancymethod_handle_str(self, str_to_handle: str):
"""Fancy method handles a string. :param str_to_handle: string which will be handled """print(f"{type(str_to_handle)} = '{str_to_handle}")
@fancymethod.registerdeffancymethod_handle_int(self, int_to_handle: int):
"""Fancy method handles int. :param int_to_handle: int which will be handled """print(f"{type(int_to_handle)} = '{int_to_handle:x}'")
pdoc output shows always a copy of singledispatchmethod docstring and not the docstring from the method. (run pdoc on the example)
Problem Description
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
pdoc
on the example)System Information
Paste the output of "pdoc --version" here.
The text was updated successfully, but these errors were encountered: