diff --git a/pdoc/__init__.py b/pdoc/__init__.py index b9ec262a..1cf1bcf4 100644 --- a/pdoc/__init__.py +++ b/pdoc/__init__.py @@ -897,10 +897,7 @@ class constructor (method `__init__`). See `pdoc.Function.params`. if name in exclusions or qualname in exclusions or refname in exclusions: return [] - params = Function._params(self.obj.__init__, - annotate=annotate, link=link, module=self.module) - params = params[1:] if params[0] == 'self' else params - return params + return Function._params(self.obj, annotate=annotate, link=link, module=self.module) def _filter_doc_objs(self, type: Type[T], include_inherited=True, filter_func: Callable[[T], bool] = lambda x: True,