Skip to content

Commit 332d09a

Browse files
committed
FIX: Use inspect.signature() on the class directly
Fixes #124
1 parent bba5121 commit 332d09a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pdoc/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -897,10 +897,7 @@ class constructor (method `__init__`). See `pdoc.Function.params`.
897897
if name in exclusions or qualname in exclusions or refname in exclusions:
898898
return []
899899

900-
params = Function._params(self.obj.__init__,
901-
annotate=annotate, link=link, module=self.module)
902-
params = params[1:] if params[0] == 'self' else params
903-
return params
900+
return Function._params(self.obj, annotate=annotate, link=link, module=self.module)
904901

905902
def _filter_doc_objs(self, type: Type[T], include_inherited=True,
906903
filter_func: Callable[[T], bool] = lambda x: True,

0 commit comments

Comments
 (0)